All Products
Search
Document Center

ApsaraDB for OceanBase:Enable automatic storage scale-out

Last Updated:Mar 18, 2024

This topic describes how to enable automatic storage scale-out for a cluster instance.

Background information

If your business involves a large data volume or your business volume frequently fluctuates drastically, we recommend that you enable automatic storage scale-out. When the storage space of a cluster instance is about to be exhausted, the storage space is automatically scaled out to ensure the stability of online services.

  • The maximum space available for storage scale-out is subject to the capacity of the data disk of the full-featured replica.

  • The system checks the storage space usage once a minute. When the available storage space is less than or equal to the specified percentage threshold, storage scale-out is automatically triggered. You can enable or disable automatic storage scale-out at any time after the instance is created.

Note

Enabling automatic storage scale-out does not affect your business. However, to ensure business stability, we still recommend that you perform the operation in off-peak hours.

Prerequisites

Before you enable automatic storage scale-out, perform a precheck and make sure that the following conditions are met:

  • The current cluster instance is running.

  • All tenants in the current cluster instance are running.

  • The storage capacity of the current cluster instance is not temporary.

  • The storage type of the current cluster is cloud disk.

Procedure

  1. Log on to the ApsaraDB for OceanBase console.

  2. In the left-side navigation pane, click Instances.

  3. In the instance list, click the name of the target cluster instance to go to the Cluster Instance Workspace page.

  4. Click Set Automatic Storage Expansion on the right of the topology.

  5. In the dialog box that appears, enable automatic storage scale-out. Specify the percentage of available storage space for triggering automatic scale-out in routine hours and major compactions, as well as the maximum storage space for automatic storage scale-out.

    • Available storage space in the Daily Period section: the percentage of available storage space that triggers automatic storage scale-out in routine hours. The default value is 10%. Valid values: 10%, 20%, 30%, 40%, and 50%.

    • Available storage space in the Consolidation Period section: the percentage of available space that triggers automatic storage scale-out during a major compaction. The default value is 5%. Valid values: 5%, 10%, 15%, 20%, 25%, and 30%.

    • Automatic storage capacity limit: the maximum storage space for automatic scale-out. Set this parameter based on your business condition. If the scaled storage space reaches the specified value, automatic storage scale-out fails.

      Note

      The minimum value of this parameter is 120% of the currently used storage space or the minimum space size of the current specifications of the instance, whichever is greater. The maximum value of this parameter is the maximum storage space allowed for the current specifications of the instance.

    • Automatic Scaling Increment Each Time: the step size of automatic storage scale-out, which can be a fixed size or percentage.By default, Fixed Size is selected.

      • Fixed Size: The default value is 50 GB. The value ranges from 50 GB to 1000 GB at a 50 GB step.

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

  6. Click OK.

What to do next

After automatic storage scale-out is enabled, an automatic scale-out label is displayed in the storage information section in the upper-right corner of the cluster instance workspace. If both automatic scale-out and temporary scale-out are enabled, the automatic scale-out and temporary scale-out labels are displayed in the storage information section in the upper-right corner of the cluster instance workspace.

auto标识.png

The automatic scale-out label is also displayed in the instance list. When you hover over the Auto label, the system prompts the maximum storage space for automatic scale-out, thresholds of storage space for triggering automatic scale-out, and automatic scale-out step.

auto标识2.png