All Products
Search
Document Center

Database Autonomy Service:Scheduled auto scaling

Last Updated:Mar 28, 2026

Database Autonomy Service (DAS) lets you schedule automatic scale-up and scale-back operations for database instances. Define a time window and DAS scales the instance up at the start, then scales it back to the original specifications when the window closes — no manual intervention needed.

For example, if your business peaks on the first day of every month at 02:00 (UTC+8) and tapers off by the third day at 02:00 (UTC+8), configure a monthly recurrence so instances scale up before the rush and scale back automatically afterward. This pattern suits flash sales, payroll processing, end-of-month reporting, and any other predictable load spike.

Prerequisites

Before you begin, ensure that you have:

  • A supported database instance:

    • ApsaraDB RDS for MySQL: Standard Edition instances in the x86 architecture, or General-purpose High-availability Edition instances using standard SSDs or Enterprise SSDs (ESSDs)

      Note

      Scheduled auto scaling is not available for read-only ApsaraDB RDS for MySQL instances.

    • PolarDB for MySQL: General-purpose or Dedicated Cluster Edition clusters

    • Tair (Redis OSS-compatible): cloud-native (cloud disk-based) Redis Open-Source Edition instances in the standard architecture, or cloud-native (cloud disk-based) Tair (Enterprise Edition) instances in the standard architecture

  • A service-linked role created for DAS. For more information, see AliyunServiceRoleForDAS role.

  • Sufficient account balance to cover the cost of scaled-up resources.

Billing

Scheduled auto scaling triggers configuration changes on the underlying instance, which are billed accordingly:

Usage notes

  • To scale up a database instance on a regular basis, you must configure a scheduled auto scaling policy for the database instance.

  • All time parameters use UTC+8. Convert your local time to UTC+8 before configuring. For example, US Eastern Time (UTC-5) 09:00 corresponds to UTC+8 22:00.

  • Each database instance supports one auto scaling policy per mode.

  • If a policy fails to run, DAS does not retry it.

  • Modifying Duration or Scale-back Time after an instance has already scaled up changes the scale-back time to the new value.

When scale-back does not occur

The instance is not scaled back even if a Duration or Scale-back Time is set in these situations:

  • The instance specifications were changed again after the scheduled policy ran, and the current specifications differ from the policy's original target.

  • Scaling back would breach a resource threshold. For example, if memory was scaled from 1 GB to 4 GB and 1 GB is already in use, scaling back to 1 GB would push memory utilization to 100%, so DAS skips the operation to protect stability.

  • The instance is in a state that does not allow specification changes, such as Changing Specifications or Migrating.

Create a scheduled auto scaling policy

The DAS console provides two entry points. Use the Auto Scaling Settings page (recommended) to manage policies centrally across multiple instances, or configure from an individual instance's detail page.

From the Auto Scaling Settings page (recommended)

  1. Log on to the DAS console.

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

  3. On the Auto Scaling Policies page, click Add Policy.

  4. In the Add Policy panel, configure the parameters described in the Parameters section.

  5. In the policy list, find the policy you created and click Apply in the Actions column.

  6. In the Apply Policies dialog box, select the target database instances, click the p202202071 icon, then click Confirm.

From an instance's detail page

  1. Log on to the DAS console.

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

  3. Find the target instance and click its instance ID.

  4. On the instance detail 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 parameters described in the Parameters section.

  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 and subscribe to alert notifications. DAS recommends an alert template and adds the required alert rules automatically. If you already have a template for this instance, add the alert rules to the existing template as prompted. For details, see Configure alert templates and 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 a contact.

    • Click Create Contact Group to create a new group.

    • Click Edit or Remove in the Actions column to update or remove a contact.

  11. Click Submit Configuration and confirm in the dialog box.

To modify or remove an applied policy:

  • Modify: Click Modify in the Actions column, then update settings in the Update Policy panel.

  • Remove: In the Applied Policy section, click Cancel in the Actions column.

Parameters

ParameterDescription
Policy nameThe name of the policy.
ModeSelect Scheduled Auto Scaling.
Engine typeThe database engine type.
SpecificationsThe target specifications for the selected engine.
OperationThe operation to perform. For ApsaraDB RDS for MySQL and Tair (Redis OSS-compatible) instances, only Adjust Instance Specifications is available. For PolarDB for MySQL clusters, both Adjust Instance Specifications and Increase Number of Read-only Nodes are available.
Valid fromThe effective date range of the policy. Start time is required and must be today or a future date. End time is optional — see Recurrence for how it interacts with each recurrence mode.
RecurrenceHow often the scaling operation runs. Valid values: N/A(Execute Only Once), Daily, Weekly, Monthly. See the table below for parameter details per recurrence mode.

Recurrence-specific parameters:

RecurrenceParameterRequiredDetails
N/A(Execute Only Once)Scaling start timeYesThe exact date and time to scale up.
DurationNoHow long to keep the scaled-up specifications, in hours (positive integer). Leave blank to skip automatic scale-back.
DailyScaling start timeYesThe time of day to scale up, applied daily.
Scale-back timeYesThe time of day to scale back. Must be at least 1 hour after the scaling start time. If scale-back time is earlier in the day than the scaling start time, scale-back occurs the next day.
WeeklyScaling start timeYesThe day of the week and time to scale up.
Scale-back timeYesThe day of the week and time to scale back. Must be at least 1 hour after the scaling start time. If scale-back falls on an earlier day of the week than the scaling start, scale-back occurs in the following week.
MonthlyScaling start timeYesThe day of the month and time to scale up.
Scale-back timeYesThe day of the month and time to scale back. Must be at least 1 hour after the scaling start time. If scale-back falls on an earlier day of the month than the scaling start, scale-back occurs in the following month.

Constraints for Daily, Weekly, and Monthly recurrence:

  • The scaling start time of each execution must be at least 1 hour after the scale-back time of the previous execution.

  • If the End time falls between the scaling start time and scale-back time of what would be the last execution, that execution is skipped entirely.

View scaling results

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

  2. Find the instance and click its instance ID.

  3. In the left pane of the instance detail page, click Autonomy Center.

  4. On the Autonomy Center page, select a time range to filter auto scaling events.

  5. In the Auto-Scaling Events section, click Details to view the full event log.

p202202081

FAQ

What if my instance has reached its maximum specifications?

Purchase a higher-specification instance and migrate your data. For ApsaraDB RDS for MySQL, the Dedicated High-availability Edition supports up to 104 vCPUs and 768 GB of memory. See the following resources for specifications and migration guides:

What's next

To manually change instance specifications outside of a scheduled policy, see: