All Products
Search
Document Center

ApsaraDB RDS:Use automatic storage expansion

Last Updated:Mar 30, 2026

If your workload is unpredictable or growing, storage can fill up unexpectedly—causing writes to fail and your instance to go offline. Database Autonomy Service (DAS) monitors your RDS instance and expands storage automatically before it runs out, with no instance restart and no service interruption.

Prerequisites

Before you begin, ensure that you have:

  • An ApsaraDB RDS for MySQL instance running MySQL 8.0 or MySQL 5.7

  • An instance that uses cloud disks (not local SSDs)

  • An Alibaba Cloud account with a sufficient balance to cover expansion costs

  • The AliyunServiceRoleForDAS service-linked role (created automatically when you enable the feature if it does not exist)

How automatic storage expansion works

When remaining free storage drops to or below your configured threshold, DAS triggers an expansion. Each expansion adds the larger of:

  • 5 GB

  • 15% of the current storage capacity, rounded to the nearest multiple of 5

If the storage capacity is less than 50 GB and free storage drops below 10% of total capacity, the minimum expansion size is 10 GB instead of 5 GB.

Example: A 100 GB instance expands by 15 GB (15% of 100 GB), bringing total capacity to 115 GB.

The minimum interval between consecutive expansion events is 10 minutes.

Limitations

Enable automatic storage expansion

  1. Go to the Instances page. In the top navigation bar, select the region of your RDS instance. Find the instance and click its ID.

  2. In the left-side navigation pane, choose Autonomy Services > Diagnostics. On the Autonomy Center tab, click Autonomy Service Settings.

  3. In the Autonomous Function Management panel, click the Autonomous Function Settings tab and enable the autonomy service.

  4. Click the Optimization and Throttling tab, select Automatic Space Expansion, and configure the following parameters.

    Standard SSD is phased out. To increase the storage ceiling, upgrade to ESSD. For more information, see Upgrade the storage type from standard SSDs to ESSDs.
    Parameter Description
    Available Storage Space The free-storage threshold that triggers expansion. When free storage falls to or below this value, DAS starts an expansion.
    Maximum Storage of Automatic Expansion The upper limit for total storage capacity after expansion. Must be greater than or equal to the current storage capacity. Maximum allowed values: ESSD (Enterprise SSD): 32,000 GB; standard SSD: 6,000 GB.
  5. Click OK.

  6. (Optional) In the Alert Configuration section, configure an alert template and subscribe to alert notifications to track expansion events as they happen. The system recommends a template and adds alert rules for the required autonomy events. Follow the on-screen instructions to complete the configuration.

    1. In the Select Alert Contact Group step, select an alert contact group. For more information, see Manage alert contacts.

      • Click Add Contact to add a contact.

      • Click Create Contact Group to create a new group.

      • To modify or remove a contact, click Edit or Remove in the Actions column.

    2. Confirm the settings in the Associate with Resources step.

    3. Click Submit Configuration and confirm the settings in the dialog box.

    If your instance already has an alert template, add the required autonomy event alert rules to that existing template as prompted. If you need to create a new template, see Configure alert templates. For individual alert rules, see Configure alert rules.

View expansion events

  1. Go to the Instances page. In the top navigation bar, select the region of your RDS instance. Find the instance and click its ID.

  2. In the left-side navigation pane, choose Autonomy Services > Diagnostics.

  3. On the Autonomy Center tab, select a time range and set Type to Auto-Scaling Events.

  4. Click Details next to an event to see the full event log.

Auto-scaling event details

Related topics