All Products
Search
Document Center

Auto Scaling:Cooldown period

Last Updated:May 16, 2025

A cooldown period is a temporary lockout interval following a successful scaling event initiated by an event-triggered task in a scaling group. This mechanism prevents additional scaling requests initiated by other event-triggered tasks during the cooldown window, thereby regulating scaling frequency.

Overview

A cooldown period defines the minimum required waiting time between two consecutive scaling events triggered by event-triggered tasks. During this period, any new scaling requests from event-triggered tasks will be automatically rejected.

Important

When a cooldown period is configured, Auto Scaling rejects only scaling requests from event-triggered tasks. Scaling requests from manual execution of scheduled tasks or adjustments to the expected/minimum/maximum instance count are unaffected and can proceed normally.

  • Classification

    • Default Cooldown Time (Seconds): specifies the default cooldown period of scaling groups.

    • Cooldown Time: specifies the cooldown period of simple scaling rules that are defined in event-triggered tasks. If you do not configure this parameter, the value of the Default Cooldown Time (Seconds) parameter is automatically used.

  • Applicable scope

    The cooldown period feature is applicable to scaling operations that are triggered by event-triggered tasks of the system monitoring type.

  • Calculation rules

    • Start time: After a scaling operation is triggered, the cooldown period begins when the last instance is added to or removed from the scaling group. If no instance is added to or removed from the scaling group after a scaling operation is triggered, the cooldown period does not begin.

    • You can configure the Default Cooldown Time (Seconds) and Cooldown Time parameters at the same time. In this case, the value of the Cooldown Time parameter takes priority.

    Important
    • Disabling and re-enabling a scaling group resets the cooldown period, so the first scaling operation afterward is not restricted by the previous cooldown period.

Examples

Scenario

Execution

Result

  • The Default Cooldown Time (Seconds) parameter of a scaling group is set to 600.

  • The Cooldown Time parameter of a scale-out rule named add3 is set to 900.

After the add3 rule is executed to trigger a scaling operation, three instances are added to the scaling group.

After the third instance is added to the scaling group, the value of the Cooldown Time parameter takes effect. In this case, new scaling operations that are triggered by event-triggered tasks are not accepted until the 15-minute cooldown period ends.

  • The Default Cooldown Time (Seconds) parameter of a scaling group is set to 600.

  • The Cooldown Time parameter of a scale-in rule named remove1 is not configured.

  1. Phase 1: After a scaling operation is triggered based on the execution of the remove1 rule at 18:00:00, one instance is removed from the scaling group.

  2. Phase 2: The scaling group enters the Disabled state at 18:02:00 and re-enters the Enabled state at 18:05:00.

  1. In Phase 1, scaling operations that are triggered by event-triggered tasks are rejected in the scaling group until 18:10:00.

  2. In Phase 2, scaling operations that are triggered by event-triggered tasks between 18:05:00 and 18:10:00 can be executed as expected.

    Note

    After a scaling operation is completed, Auto Scaling rejects new scaling requests that are triggered by event-triggered tasks during the 600-second cooldown period.

  • The Default Cooldown Time (Seconds) parameter of a scaling group is set to 600.

  • The Cooldown Time parameter of a scale-out rule named add1 is set to 600.

  1. Phase 1: After a scaling operation is triggered based on the execution of the add1 rule at 18:00:00, one instance is added to the scaling group.

  2. Phase 2: You manually execute the add1 rule at 18:05:00.

  1. In Phase 1, scaling operations that are triggered by event-triggered tasks are rejected in the scaling group until 18:10:00.

  2. In Phase 2, the add1 rule can bypass the cooldown period and immediately adds one instance to the scaling group.

Configure a cooldown period

Configure the Default Cooldown Time (Seconds) parameter of a scaling group

Modify the Default Cooldown Time (Seconds) parameter of an existing scaling group

  1. Log on to the Auto Scaling console.

  2. In the left-side navigation pane, click Scaling Groups.

  3. In the top navigation bar, select the region where Auto Scaling is activated.

  4. On the Scaling Groups page, find the scaling group whose Default Cooldown Time (Seconds) parameter you want to modify and click Details in the Actions column to go to the scaling group details page. In the Instance Scaling Overview section, click the image icon to open the Edit Instance Scaling Overview dialog box.

  5. Modify the Default Cooldown Time (Seconds) parameter based on your business requirements.

  6. Click OK.

Configure the Default Cooldown Time (Seconds) parameter when you create a scaling group

When you create a scaling group on the Create by Form tab, you can configure the Default Cooldown Time (Seconds) parameter based on your business requirements, as shown in the following figure.

image

For information about how to create a scaling group, see Create a scaling group of the ECS type or Create a scaling group of the Elastic Container Instance type.

Configure the Cooldown Time parameter of a simple scaling rule

Modify the Cooldown Time parameter of an existing simple scaling rule

  1. Log on to the Auto Scaling console.

  2. In the left-side navigation pane, click Scaling Groups.

  3. In the top navigation bar, select the region where Auto Scaling is activated.

  4. On the Scaling Groups page, find the scaling group whose simple scaling rule you want to manage and click Details in the Actions column to go to the scaling group details page.

  5. Choose Scaling Rules and Event-triggered Tasks > Scaling Rules. Find the scaling rule that you want to manage and click Edit in the Actions column to open the Edit Scaling Rule dialog box.

  6. Modify the Cooldown Time parameter based on your business requirements.

  7. Click OK.

Configure the Cooldown Time parameter when you create a simple scaling rule

When you create a simple scaling rule, you can configure the Cooldown Time parameter based on your business requirements, as shown in the following figure.

image

For more information about how to create a scaling rule, see Configure scaling rules.

References

  • For information about how to modify the default cooldown period of a scaling group by calling an API operation, see ModifyScalingGroup.

  • For information about how to modify the cooldown period of a simple scaling rule by calling an API operation, see ModifyScalingRule.