Traffic spikes during events like shopping festivals can push your database instance beyond its normal capacity. Rather than permanently upgrading — and paying for resources you only need briefly — you can use Elastic Configuration to temporarily scale up CPU cores, memory, or connections for a specified period. When the deadline passes, the system automatically restores the instance to its original specifications with no service interruption.
Example: An online store running on a 2-core, 16 GB instance handles 100,000 visits per day under normal conditions. On Double 11, traffic is expected to reach 1,000,000 visits. Instead of permanently upgrading the instance, the store temporarily scales up to 8 cores and 64 GB for that period only. When the deadline passes, the system automatically scales it back down.
Temporary upgrades take effect within approximately 2 minutes and do not cause service interruptions or other negative effects.
Prerequisites
Before you begin, ensure that you have:
-
An ApsaraDB MyBase for MySQL instance or an ApsaraDB MyBase for PostgreSQL instance
Set up elastic scaling
-
Log on to the ApsaraDB for MyBase console.
-
In the upper-left corner of the Dedicated Clusters page, select the region where the target instance is deployed.

-
In the left-side navigation pane, click Clusters. Find the dedicated cluster and click Details in the Actions column.
-
In the left-side navigation tree, click Instances. Find the instance, then choose More > Set Instance Scaling in the Actions column.

-
In the Elastic Configuration panel, configure the following parameters.
The parameters for elastic scaling vary based on the database engine. You can view the parameters in the ApsaraDB for MyBase console.
Parameter Description Instance Information Displays the instance ID, current CPU, memory, and maximum connections. Resource Type The resource to scale up: CPU, Memory, or Connections. Set up resources The target quantity for the selected resource after the upgrade. Deadline of temporary dispatching The date and time when the instance automatically reverts to its original specifications. Restore to specification original configuration Select the check box next to a resource to cancel an active temporary upgrade for that resource. Skip this field if you do not need to cancel an existing upgrade. 
-
Click OK.
-
Wait approximately 2 minutes for the upgrade to take effect. To verify, click the instance ID, go to the Basic Information page, and check the Instance Resources section for the updated specifications.
