Scale Automatically

Not Oracle Cloud Infrastructure This topic does not apply to Oracle Cloud Infrastructure. Identify the Cloud Infrastructure Used by a Service Instance.

Automatic scaling (auto-scaling) allows you to configure a set of rules–or “policies”–that determine when to add or remove nodes from a cluster and the minimum and maximum number of nodes that can be added to a cluster. You can create rules, edit them or delete them.

The auto-scaling feature allows you to:

Create a Scaling Rule

Only Oracle Cloud Infrastructure Classic This topic applies only to Oracle Cloud Infrastructure Classic.

Oracle Java Cloud Service can monitor a service instance and, when certain workload conditions are true, perform scaling operations without any user intervention.

Note:

The Bring Your Own License (BYOL) option enables you to bring your on-premises Oracle WebLogic Server licenses to Oracle Cloud. BYOL instances are billed at a lower rate than other instances. See Frequently Asked Questions: Oracle BYOL to PaaS. Before you scale up or scale out a BYOL instance, you must have enough WebLogic Server licenses for the additional OCPUs that will be allocated to the instance after it is scaled.

The following types of scaling operations can be performed automatically by using scaling rules:

  • Add a new node to the instance (scale out) when the average memory utilization on all nodes is greater than or equal to a specified percentage.

  • Remove a node from the instance (scale in) when the maximum amount of memory in use on all nodes is less than a specified size.

Each service instance can be associated with at most one scale-in rule and one scale-out rule.

Wait for any maintenance operations on this service instance to complete, such as backup, restoration or patching operations, before you begin.

  1. Access your service console.
  2. Click the name of the service instance for which you want to create a scaling rule.
  3. At the top of the Overview page, click Manage this instance Menu icon, and then select Define Auto Scaling Rules.
    If there are no auto-scaling rules defined, the Rules page displays the message Auto scaling not configured for this service.
  4. On the Rules page, click New Rule.
  5. In the New Rule dialog box, define the new rule.
    Field Description

    Perform [ ]

    Select the type of scaling operation to perform:

    • Scale-in - Remove a node from the cluster.

    • Scale-out - Add a node to the cluster.

    to Maximum (Minimum) Cluster Size of [ ]

    Enter the cluster size limit:

    • For Scale-in rules, this is the minimum number of nodes that must be present in the cluster after a scaling operation.

    • For Scale-out rules, this is the maximum number of nodes that can be present in the cluster after a scaling operation.

    whenever [ ]

    Select the basis for calculating the rule threshold:

    • Average CPU or memory usage

    • Maximum CPU or memory usage

    • Minimum CPU or memory usage

    of [ ]

    Select the type of metric upon which the scaling operation is triggered:

    • CPU Utilization - The percentage of total CPU in use

    • Memory Utilization - The percentage of total memory in use

    • Memory - The amount of memory in use

    is >= [ ] % (GB) or is <= [ ] % (GB)

    Enter the threshold value of the selected metric that, when met or exceeded, will trigger the scaling operation.

    • For CPU Utilization or Memory Utilization, enter a percentage between 0 and 100.

    • For Memory, enter a value in Gigabytes.

    for at least [ ]

    Enter the minimum number of times the threshold condition must be detected before the scaling operation is triggered.

    consecutive period(s) of [ ] minutes

    Enter the number of minutes during which the threshold condition must be detected before the scaling operation is triggered.

    on [ ] instances

    Select one of these options:

    • Any - The threshold condition can be detected on any node in this service instance before the scaling operation is triggered.

    • All - The threshold condition must be detected on all of the nodes in this service instance before the scaling operation is triggered.

    and wait for [ ] minutes of cool down period

    Enter the minimum number of minutes for which Oracle Cloud waits before it reevaluates this scaling rule.

  6. Click Create.
  7. When prompted for confirmation, click OK.
  8. Periodically click Refresh Refresh icon until the rule status indicates that the rule configuration is completed.

Edit a Scaling Rule

Only Oracle Cloud Infrastructure Classic This topic applies only to Oracle Cloud Infrastructure Classic.

You can edit an existing scaling rule for Oracle Java Cloud Service, to modify the conditions under which it is triggered or the scaling actions that it performs.
  1. Access your service console.
  2. Click the name of the service instance that defines the scaling rule.
  3. At the top of the Overview page, click Manage this instance Menu icon, and then select Define Auto Scaling Rules.
  4. On the Rules page, for the rule you want to edit, click Actions Menu icon, and then select Edit.
  5. In the Edit Rule dialog box, edit the rule definition as necessary.
  6. Click Update.
  7. When prompted for confirmation, click OK.
  8. Periodically click Refresh Refresh icon until the rule status indicates that the rule configuration is completed.

Delete a Scaling Rule

Only Oracle Cloud Infrastructure Classic This topic applies only to Oracle Cloud Infrastructure Classic.

You can delete a scaling rule from an Oracle Java Cloud Service instance when it is no longer required.
  1. Access your service console.
  2. Click the name of the service instance that defines the scaling rule.
  3. At the top of the Overview page, click Manage this instance Menu icon, and then select Define Auto Scaling Rules.
  4. On the Rules page, for the rule you want to delete, click Actions Menu icon, and then select Delete.
  5. When prompted for confirmation, click Yes, and then click OK.
  6. Periodically click Refresh Refresh icon until the rule no longer appears on the Rules page.