Considerations for Scaling In

When you perform a scale in operation to reduce the number of nodes or compute instances running on your Oracle WebLogic Server for OCI stack, you should remove certain components such as managed servers and machines manually. You should delete the server first followed by the target machine to avoid encountering an error.

To remove such components manually:

  1. Log in to the Oracle WebLogic Server Administration Console.
    For information to access the console, see Access the WebLogic Console.
  2. Click Lock & Edit.
  3. Got to Domain, click Environment, and then select Servers.
  4. Select the server that is on the compute instance you want to scale in.

    Note:

    Ensure that the server is in the shutdown state before you delete it.
  5. Click Delete.
  6. Click Yes to confirm the deletion.
  7. To delete the target machine, click Machines on the left navigation pane.
  8. Click Delete.
  9. Click Activate Changes.
You are now ready to perform the scale in operation.

To scale in a compute instance:

  1. Sign in to the Oracle Cloud Infrastructure Console.
  2. Click the navigation menu Navigation Menu icon, select Developer Services. Under the Resource Manager group, click Stacks.
  3. Select the Compartment that contains your stack.
  4. Click the name of your stack.
  5. Click Variables.
  6. Click Edit Variables.
  7. Reduce the Node Count to the desired value.
  8. Click Next.
  9. Click Save Changes.
  10. On the Stack Details page, click Apply.
  11. In the Apply panel, enter a name for the job and click Apply.
  12. Periodically monitor the progress of the Apply job until it is finished.
  13. Click Outputs.
  14. Locate WebLogic_Instances, and verify the number of compute instances in the updated stack.