This topic describes how to configure elastic scaling settings to handle traffic spikes, such as those that occur during major shopping festivals.
Background information
The elastic scaling feature helps you easily manage these short-term business peaks. You can temporarily increase an instance's specifications, such as its memory and CPU, to improve overall performance. At the end of the temporary adjustment period, the system automatically restores the instance to its original specifications.
For example, an e-commerce store might average 100,000 daily visits, which can be handled by an instance with 2 CPU cores and 16 GB of memory. During a major sale, this traffic could increase to one million visits. To handle this anticipated traffic spike, you can temporarily upgrade the instance to 8 CPU cores and 64 GB of memory.
Procedure
Log on to the ApsaraDB MyBase console.
In the top navigation bar, select the target region.
In the navigation pane on the left, click Clusters. Find the target cluster and click Details in the Actions column.
In the navigation pane on the left, click Instances. Find the target instance and choose in the Actions column.
- On the Elastic Configuration page, configure the following parameters:
In the Set Scale-up Resources section, use the slider or input a value to adjust the resource limits (for example, set connections from 1,200 to 100,000). Set the End time. As needed, select the required options under Restore to original specifications, and then click OK.
Parameter Description Instance information Shows basic instance information, including: - Instance ID
- CPU
- Memory
- Maximum connections
Resource type Select the type of resource to scale, including: - CPU
- Memory
- Connections
Set Scale-up Resources Adjust the value for the selected Resource type. End time Select the end time for the temporary upgrade. Restore to original specifications Select a resource's checkbox to enable a one-click restoration to its original specifications from this panel. Note Do not select this option if you do not need to restore the original specifications.Note Elastic scaling parameters vary by database engine. Refer to the values shown in the console. Click OK.
After the settings take effect, click the target instance ID. On the Basic information page, you can view the updated resource information in the Instance resources section.
The Instance resources section displays the current usage, quota limit, and expiration time for CPU, Memory, and Connections.