If your workload grows unpredictably, manual storage upgrades can cause downtime before you have a chance to react. Automatic storage expansion monitors available storage on your ApsaraDB MyBase for MySQL High-availability Edition instance and adds capacity automatically when space runs low—no manual intervention required.
Supported configurations
Automatic storage expansion is available only for ApsaraDB MyBase for MySQL High-availability Edition instances that use enhanced SSDs (ESSDs).
How expansion works
When available storage on your instance drops to or below the threshold you configure, the Autonomy Service triggers an expansion. Each expansion adds whichever amount is greater:
5 GB
15% of the current storage capacity
Examples:
| Current storage | Expansion increment | Result |
|---|---|---|
| 20 GB | 5 GB (greater than 3 GB, which is 15% of 20 GB) | 25 GB |
| 100 GB | 15 GB (greater than 5 GB, which is 15% of 100 GB) | 115 GB |
The instance does not expand beyond the Maximum Storage of Automatic Expansion value you set.
Enable automatic storage expansion
There are two ways to enable this feature:
During instance creation: Configure automatic storage expansion when you create an ApsaraDB MyBase for MySQL instance.
After instance creation: Follow the steps below.
Prerequisites
Before you begin, ensure that you have:
An ApsaraDB MyBase for MySQL High-availability Edition instance that uses ESSDs
Sufficient balance in your Alibaba Cloud account or storage plan to cover expansion costs
Configure automatic storage expansion on an existing instance
Log on to the ApsaraDB for MyBase console.
In the upper-left corner of the page, select a region.
In the left-side navigation pane, choose Instances > MySQL.
Find the instance you want to manage and click Details in the Actions column.
In the left-side navigation pane, choose Autonomy Service > Dashboard.
On the right side of the page, click Autonomy Service Settings.
On the Autonomous Function Settings tab, configure the following parameters:
Parameter Description Autonomy Service Turn on Autonomy Service. Automatic Space Expansion Select the Automatic Space Expansion option. Available Storage Space Set the available storage threshold (%). Expansion triggers when available storage is at or below this percentage. Maximum Storage of Automatic Expansion Set the upper limit for automatic expansion. Valid values: 100–32000. Unit: GB. Click OK.
Limitations
Automatic storage expansion applies only to High-availability Edition instances that use ESSDs.