Prediction-based auto scaling in Database Autonomy Service (DAS) forecasts metric values for the next 24 hours based on the past 10 days of instance data. When a predicted value reaches or exceeds the threshold you set, DAS surfaces a scaling suggestion — you review and act on it rather than reacting to a live spike.
In this mode, DAS provides scaling suggestions only. It does not perform scaling operations automatically.
Prerequisites
Before you begin, ensure that you have:
A supported database instance type:
ApsaraDB RDS for MySQL
PolarDB for MySQL
Tair (Redis OSS-compatible)
A service-linked role (AliyunServiceRoleForDAS) created for DAS. For more information, see AliyunServiceRoleForDAS role.
Create a prediction-based auto scaling policy
There are two ways to create a policy. Use the Management and Settings page to manage policies centrally across multiple instances, or use the Autonomous Function Management panel to configure a policy directly on a specific instance.
Option 1: Create a policy from the Management and Settings page
Log on to the DAS console.
In the left-side navigation pane, choose Resources > Auto Scaling Settings.
In the Auto Scaling Policies section, click Add Policy.
In the Add Policy panel, configure the following parameters.
Parameter Description Policy Name A name for the policy Mode Select Prediction-based Auto Scaling Engine Type The database engine type Metric Type The metric to predict. For RDS MySQL or PolarDB MySQL, only CPU Utilization (%) is available. For Redis (Tair), only Memory Usage (%) is available. Destination Value The threshold. DAS provides a scaling suggestion when the predicted value is greater than or equal to this value. Click Next Step. In the Apply Policies dialog box, select the database instances to apply the policy to, then click the
icon.Click Confirm.
To apply the policy to additional instances later, find the policy in the Auto Scaling Policies section, click Apply in the Actions column, select the instances, and click Confirm.
Option 2: Create a policy from the instance details page
Use this option when you want to configure a policy, alerts, and contact groups for a specific instance in one place.
Log on to the DAS console.
In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.
Find the instance and click its ID.
On the instance details page, click Autonomy Service Settings in the upper-right corner.
On the Autonomous Function Settings tab of the Autonomous Function Management panel, click the Auto Scaling tab.
In the Applied Policies section, click Add Policy and configure the policy parameters. For parameter descriptions, see the "Table 1. Parameters" section of the Automatic scaling for local resources topic.
In the Recommended Policies section, find the policy you created and click Apply in the Actions column.
Click OK.
In the Alert Configuration section, configure an alert template to receive notifications when a scaling suggestion is triggered. DAS recommends an alert template with the required alert rules pre-added. Follow the prompts to complete the configuration.
If your instance already has an alert template, add the required autonomy event alert rules to that template. For details, see Configure alert templates. To add specific alert rules, see Configure alert rules.
In the Select Contact Group section, select an alert contact group. For details, see Manage alert contacts.
Click Add Contact to add an alert contact.
Click Create Contact Group to create a new contact group.
To edit or delete a contact, click Edit or Remove in the Actions column.
Click Submit Configuration and confirm in the dialog box.
To modify a policy, click Modify in the Actions column and update the settings in the Update Policy panel.
To stop applying a policy to an instance, click Cancel in the Actions column under the Applied Policies section.
View scaling results
To check the results of prediction-based auto scaling:
In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.
Find the instance and click its ID.
In the left-side pane of the instance details page, click Autonomy Center.
On the Autonomy Center page, select a time range to view the auto scaling events that occurred during that period.
Click Details in the Event: Database Workload Prediction section to view the prediction details.

What's next
Once DAS provides a scaling suggestion, act on it by resizing the instance. For instructions, see the topic for your database type:
ApsaraDB RDS for MySQL: Change instance specifications
PolarDB for MySQL: Manually change the specifications of a cluster
Tair (Redis OSS-compatible): Change the configurations of an instance