The auto scaling policy only scales the number of running (desired) tasks and does not modify the auto scaling policy, which is still set to a range of 1-5 tasks. The service may be updated to modify any or all of the minimum number of tasks, desired count, maximum number of tasks, and scaling action for auto scaling. In this section, we shall discuss updating the auto scaling configuration:
- Click on
Update
for the service as before. TheDesired number of tasks
is set to5
, as shown here, when auto scaling is performed:
- Reduce the
Desired number of tasks
to3
, as shown here.
- To modify the scaling policy, click on the
AutoScaler
link, as shown here:
- In
Edit policy
, selectUse an existing
policy and select theAutoScaleBasedOnCPUUtilization
policy. The scaling action does not have to be performed when the alarm threshold is breached. Modify the scaling action toAdd
1
tasks
when0.9<=CPUUtilization
, as shown here. The alarm threshold isCPUUtilization> 0.1
for...