All Products
Search
Document Center

ApsaraDB RDS:Configure automatic storage expansion

Last Updated:Jun 03, 2024

Database Autonomy Service (DAS) provides the automatic storage expansion feature for ApsaraDB RDS for SQL Server. This feature allows you to monitor the storage usage of your ApsaraDB RDS for SQL Server instance and automatically expands the storage capacity of the RDS instance when the storage capacity is insufficient. This feature helps ensure the stability of your workloads.

Prerequisites

  • Your RDS instance uses cloud disks and runs RDS High-availability Edition or RDS Cluster Edition.

    Note
  • The balance of your Alibaba Cloud account is sufficient to pay for the resources that are required to expand storage space.

  • The service-linked role for DAS is created. For more information, see AliyunServiceRoleForDAS role.

    Note

    If no service-linked role is created for DAS, the system automatically creates the role before the system expands storage space.

Background information

For more information, see Auto Scaling.

Usage notes

  • If your database instances include read-only instances, DAS automatically checks the storage space of each read-only instance when automatic space expansion is triggered for the primary instance. If the storage space of a read-only instance is smaller than the storage space to which that of the primary instance is expanded, DAS first expands the storage space of the read-only instance. When the storage space of all read-only instances meets the requirement, DAS automatically expands the storage space of the primary instance.

  • The automatic space expansion feature cannot be used for specific ApsaraDB RDS for SQL Server instances due to the limits of Windows drivers. In this case, we recommend that you update the minor engine version of these database instances. For more information, see Update the minor engine version of an ApsaraDB RDS for SQL Server instance.

Billing

The billing rules for automatic space expansion are the same as those for manual space expansion of ApsaraDB RDS instances. For more information, see Specification changes.

Procedure

  1. Log on to the DAS console.

  2. In the left-side navigation pane, click Instance Monitoring.

  3. On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.

  4. In the left-side navigation pane of the page that appears, click Autonomy Center.

  5. In the upper-right corner of the Autonomy Center tab, click Autonomy Service Settings.

  6. On the Autonomous Function Settings tab of the Autonomous Function Management panel, enable the automatic storage expansion feature.

  7. On the Optimization and Throttling tab, select Automatic Space Expansion and configure the following parameters.

    Parameter

    Description

    Available Storage Space ≤

    The threshold for triggering automatic storage expansion.

    When the remaining storage of the instance is less than or equal to the value of this parameter, the system automatically expands the storage capacity based on the larger value between the following items:

    • 5 GB.

      Note

      If the storage capacity of the RDS instance is less than 50 GB and the percentage of the available storage is less than 10% of the storage capacity, the step size for storage capacity expansion is adjusted to 10 GB.

    • 15% of the current storage capacity of the RDS instance. The result is the nearest integer that is a multiple of 5.

    For example, if the total storage capacity is 100 GB, the storage capacity is expanded by 15 GB when the threshold is reached. After the expansion, the total storage capacity is 115 GB.

    Maximum Storage of Automatic Expansion

    The maximum storage capacity of the RDS instance after the storage capacity expansion. The value of this parameter must be greater than or equal to the storage capacity of the RDS instance.

    Note

    The minimum interval between two consecutive storage capacity expansion events is 10 minutes.

  8. Click OK.

View the results of automatic space expansion

  1. Log on to the DAS console.

  2. In the left-side navigation pane, click Instance Monitoring.

  3. On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.

  4. On the instance details page, click Autonomy Center in the left-side navigation pane.

  5. On the Autonomy Center page, specify a time range and view the Auto-Scaling Events that occurred within the specified time range.

  6. Click Details to view the details of automatic space expansion.弹性伸缩事件