Set automatic storage scaling

更新时间:
复制 MD 格式

This topic describes how to enable automatic storage scaling for a cluster instance.

Background information

If your business involves a large volume of data or your workload fluctuates significantly and frequently, you can enable automatic storage scaling. When the storage space is about to overflow, the cluster's storage automatically scales out. This ensures the stability of your online services.

  • Automatic storage scaling applies to the data disks of full-featured replicas.

  • The system checks the space usage every minute. When the available storage space is less than or equal to the specified value, scaling is automatically triggered. You can enable or disable this feature at any time after the instance is created.

Note

Enabling automatic storage scaling does not affect your services. However, to ensure service stability, perform this operation during off-peak hours.

Prerequisites

Before you set automatic storage scaling, make sure that the following conditions are met.

  • The cluster is in the Running or Tenant Recovering state.

  • All tenants in the cluster are in the Running or Recovering state.

  • The cluster is not in a temporary capacity state.

  • The storage class of the cluster is cloud disk.

Procedure

  1. Log on to the OceanBase Management Console .

  2. In the navigation pane on the left, click Instance List.

  3. In the instance list, find the target cluster instance and click its name to open the Cluster Instance Workspace page.

  4. To the right of the topology graph, click Set Automatic Storage Scaling.

    Note

    Automatic storage scaling applies to all replicas of the instance, including full-featured replicas and read-only replicas.

  5. In the pop-up window, turn on the automatic storage scaling switch. Set the available storage percentage that triggers automatic scaling for regular periods and data merge periods. You also need to set the upper limit for automatic storage scaling.

    • Available Storage for Regular Periods: Set the percentage of available storage. During regular periods, automatic scaling is triggered when the percentage of available storage drops to this preset threshold. The default value is 15%. The value range is 10% to 30%.

    • Available Storage for Merge Periods: Set the percentage of available storage. During data merge periods, automatic scaling is triggered when the percentage of available storage drops to this preset threshold. The default value is 10%. The value range is 5% to 30%.

    • Automatic Storage Scaling Upper Limit: Set a reasonable upper limit based on your business needs. If the storage space reaches the preset upper limit during automatic scaling, the scaling operation fails.

      Note

      The minimum value for the automatic storage scaling upper limit is the greater of 120% of the currently used storage space or the minimum storage size for the current instance specification. The maximum value is the maximum storage size allowed for the current instance specification.

    • Scaling Step Size: You can scale out by a Fixed Size or a Percentage. The system selects Fixed Size by default.

      • Fixed Size: The default value is 50 GB. You can adjust the value in 5 GB increments.

      • Percentage: The default value is 10%. Valid values are 10%, 20%, 30%, 40%, and 50%.image

  6. Click OK.

Related operations

After you enable automatic storage scaling, an automatic scaling icon appears in the storage information section in the upper-right corner of the Cluster Instance Workspace page. If both automatic storage scaling and temporary capacity expansion are active, icons for both are displayed.

auto标识.png

You can also see the automatic scaling icon in the instance list. When you move the mouse pointer over Auto, the system displays the upper limit for automatic scaling, the storage threshold that triggers it, and the scaling step size.

auto标识2.png