Oracle by Example brandingEdit a Stack for Oracle WebLogic Server for OCI

section 0Before You Begin

This 10-minute tutorial shows you how to edit a stack associated with Oracle WebLogic Server for Oracle Cloud Infrastructure (Oracle WebLogic Server for OCI) domain by using Resource Manager.

Background

Marketplace uses Oracle Resource Manager to provision the network, compute instances, and load balancer as single unit called a stack. A stack includes a basic Oracle WebLogic Server 12c domain, one or more WebLogic Server compute instances, network resources, and an optional load balancer.

You can use the Oracle Resource Manager to edit the stack to resize your Oracle WebLogic Server for OCI domain to meet the changing workload requirements.

This tuotrial uses a stack that is provisioned for an Oracle WebLogic Server for OCI domain using a new VCN and new subnet.

Note:

  • You can only edit the displayed variables for Oracle WebLogic Server for OCI stacks that are provisioned after 20.3.1 version.
  • You can edit all the variables for Oracle WebLogic Server for OCI stacks that are provisioned before 20.3.1 version. In this case, it is important to be careful because certain stack variables will destroy and re-provision the stack. Customizations made to the stack may also be lost.

What Do You Need?

  • An Oracle Cloud Infrastructure cloud tenant.
  • An Oracle Cloud Infrastructure user name and password.
  • A duly created stack in a compartment.

section 1Edit a Stack

  1. Sign in to the Oracle Cloud Infrastructure console.
  2. Click the navigation menu Menu icon, select Developer Services. Under Resource Manager group, select Stacks.
  3. From the Compartment dropdown, select the compartment where your stack is located.
  4. Click the name of your stack.
  5. Under Edit, click Edit Stack.
  6. (Optional) On the Stack Information page, upload the Terraform Configuration source files. You can upload the Terraform Configuration source as a folder or .ZIP file.
  7. (Optional) Edit name and description of the stack.

    Note: Do not change the Terraform Version.

  8. Click Next.

    The Configure Variables page appears.

  9. For the SSH Public Key, upload the SSH public key file to access the new compute instance. You can also paste the contents of the SSH public key file. The key will be used for new compute instances only. The keys for existing compute instances remain unchanged.
  10. Keep the default selection for the Provision Load Balancer check box.
  11. (Optional) If you have updated the WebLogic Server administrator password, then enter the OCID of the secret that contains the password for the WebLogic Server administrator.
  12. If you want Oracle WebLogic Server for OCI to create compute instances but not update your domain configuration, select Do Not Update Domain Configuration For Scale Out. If you select Do Not Update Domain Configuration For Scale Out, then you must manually update your domain configuration and add the managed servers. Use the WebLogic Server Administration Console or the WebLogic Server Scripting Tool (WLST).
  13. For Compute Shape, select the shape of the new compute instance. If you select a flexible shape, you can specify the OCPU Count for the compute instance shape. To change the shape of an existing compute instance, see Change Compute Instance Shape.
  14. Select the Node Count to add a compute instance.
  15. Select the Weblogic Server Nodes Limit to scale the domain.
  16. Click Next.
  17. Review the updated Stack information and then click Save Changes.
  18. Click Terraform Actions and then click Apply.
  19. When prompted for confirmation, click Apply.

more informationWant to Learn More?