All Products
Search
Document Center

Database Autonomy Service:Prediction-based auto scaling

Last Updated:Mar 28, 2026

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

  1. Log on to the DAS console.

  2. In the left-side navigation pane, choose Resources > Auto Scaling Settings.

  3. In the Auto Scaling Policies section, click Add Policy.

  4. In the Add Policy panel, configure the following parameters.

    ParameterDescription
    Policy NameA name for the policy
    ModeSelect Prediction-based Auto Scaling
    Engine TypeThe database engine type
    Metric TypeThe metric to predict. For RDS MySQL or PolarDB MySQL, only CPU Utilization (%) is available. For Redis (Tair), only Memory Usage (%) is available.
    Destination ValueThe threshold. DAS provides a scaling suggestion when the predicted value is greater than or equal to this value.
  5. Click Next Step. In the Apply Policies dialog box, select the database instances to apply the policy to, then click the xy icon.

  6. 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.

  1. Log on to the DAS console.

  2. In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.

  3. Find the instance and click its ID.

  4. On the instance details page, click Autonomy Service Settings in the upper-right corner.

  5. On the Autonomous Function Settings tab of the Autonomous Function Management panel, click the Auto Scaling tab.

  6. 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.

  7. In the Recommended Policies section, find the policy you created and click Apply in the Actions column.

  8. Click OK.

  9. 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.
  10. 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.

  11. 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:

  1. In the left-side navigation pane, choose Intelligent O&M Center > Instance Monitoring.

  2. Find the instance and click its ID.

  3. In the left-side pane of the instance details page, click Autonomy Center.

  4. On the Autonomy Center page, select a time range to view the auto scaling events that occurred during that period.

  5. Click Details in the Event: Database Workload Prediction section to view the prediction details.

tx

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: