Database Autonomy Service (DAS) provides the auto scaling feature. This feature allows DAS to provide suggestions for scaling database instances based on your preset policies and to scale instances when their workloads reach specified thresholds.
Prerequisites
- The following database engines are supported:
- For information about the database engines that are supported when Mode is set to Prediction-based Auto Scaling, see Prediction-based auto scaling.
- For information about the database engines that are supported when Mode is set to Scheduled Auto Scaling, see Scheduled auto scaling.
- For information about the database engines that are supported when Mode is set to Automatic Scaling for Local Resources, see Automatic scaling for local resources.
- For information about the database engines that are supported when Mode is set to Automatic storage scale-out, see Automatic storage capacity expansion.
- A DAS-linked role is created. For more information, see AliyunServiceRoleForDAS role.
Note Starting from February 18, 2022, this feature will be gradually rolled out to eventually
cover all DAS users.
Features
- Prediction-based auto scaling: DAS predicts the metric values of an instance in the next 24 hours based on the historical data of the instance over the last 10 days. If the predicted value of a metric is greater than or equal to the predefined value, scaling suggestions are provided.
- Scheduled auto scaling: DAS scales up or down the specifications of database instances based on your scheduled auto scaling policies. This feature allows you to cope with predictable periodic changes in database loads and control costs while meeting business requirements.
- Automatic scaling for local resources: When the average CPU utilization of a database instance reaches the specified threshold within an observation window, DAS utilizes available resources on the local host to increase the number of CPU cores of the database instance to the specified value.
- Automatic storage capacity expansion: When the used storage space of a database instance is greater than or equal to the specified scaling threshold, the system automatically increases the storage space to ensure that your business is stably running.
Create a policy
Apply a policy
- Log on to the DAS console.
- In the left-side navigation pane, click Management and Settings.
- In the Auto Scaling Policies section, click Apply in the Actions column corresponding to the policy that you want to apply.
- In the Apply Policies dialog box, select the database instances to which you want to apply the policy,
and click
.
- Click Confirm to apply the policy to the selected database instances.
Cancel the application of a policy
- Log on to the DAS console.
- In the left-side navigation pane, click Management and Settings.
- In the Auto Scaling Policies section, click the number in the Applied Instances column corresponding to the policy that you want to cancel for an instance.
- In the Instance Details dialog box, click Cancel in the Actions column corresponding to the instance for which you want to cancel the policy.
- In the message that appears, click OK.