A cooldown period is a lock window after a scaling activity triggered by an event-triggered task completes. During this window, the scaling group rejects new event-triggered scaling requests, giving your system time to stabilize.
How it works
A cooldown period sets the minimum interval between two event-triggered scaling activities. Auto Scaling rejects any new event-triggered scaling requests during this interval.
If a Cooldown Time is configured, the scaling group rejects scaling requests from Event-triggered Tasks. However, scaling activities initiated by other methods are unaffected and can execute immediately. These methods include manual execution, scheduled tasks, and changes to the Event-triggered Tasks, maximum size, or minimum size. This also applies to API calls that perform these actions.
-
Types of cooldown periods
-
Default cooldown time: The default cooldown time for an entire scaling group.
-
Cooldown period: The cooldown period for a specific simple scaling rule. If this is not configured for a rule, the rule inherits the scaling group's Default Cool-down Time.
-
-
Scope
Cooldown periods apply only to scaling activities triggered by event-triggered tasks (CloudMonitor).
-
Calculation rules
-
Start time: The cooldown timer starts when the last ECS instance is successfully added to or removed from the scaling group. If a scaling activity completes without changing the instance count, no cooldown begins.
-
Precedence: If both a group-level default cooldown time and a rule-specific cooldown period are configured, the rule-specific cooldown period takes precedence.
ImportantIf you disable and then re-enable a scaling group, any active cooldown is reset. The next event-triggered scaling request is accepted immediately.
-
Configure a cooldown period
Set the default cooldownDefault Cool-down Time
Modify an existing group
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select the region where Auto Scaling is activated.
-
On the Scaling Groups page, find the scaling group for which you want to modify the Default Cool-down Time, and in the Actions column on the right, click Modify.
-
Update the value for Default Cooldown Time (Seconds).
-
Click OK.
Create a new group
When you create a scaling group, you can set the Default Cooldown Time (Seconds) on the creation page.
In this example, Default Cooldown Time (Seconds) is set to 300. The value must be an integer from 0 to 86,400.
To create a scaling group, see Create an ECS scaling group or Create an ECI scaling group.
Set the cooldown periodCooldown Time
Modify an existing rule
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select the region where Auto Scaling is activated.
-
On the Scaling Groups page, find the scaling group for which you want to modify the Cooldown Time of a scaling rule, and in the Actions column on the right, click Details to go to the details page of the scaling group.
-
Click the tab. In the Scaling Rules list, find the simple scaling rule to modify. In the Actions column, click Modify to open the Edit Scaling Rule dialog box.
-
Update the value for Cooldown Time.
-
Click OK.
Create a new rule
When you create a simple scaling rule, you can set a Cooldown Time for the rule.
The default value is 300 seconds.
To create a scaling rule, see Configure scaling rules.
API reference
-
Modify the default cooldown time for a scaling group: ModifyScalingGroup.
-
Modify the cooldown period for a scaling rule: ModifyScalingRule.