Back to results for “Auto Scaling Groups”
AWS › Auto Scaling Groups

What scaling policies are available in Auto Scaling Groups, such as target tracking and step scaling?

Intermediate

Answer

Target tracking scaling automatically adjusts capacity to keep a specific metric, such as average CPU utilization, at a target value you define, simplifying scaling configuration significantly, while step scaling lets you define specific scaling actions that trigger at different thresholds of a CloudWatch alarm, giving you finer grained control over exactly how much capacity to add or remove at each level of demand.
aws autoscaling put-scaling-policy --auto-scaling-group-name my-asg --policy-name cpu-target-tracking --policy-type TargetTrackingScaling --target-tracking-configuration '{"PredefinedMetricSpecification":{"PredefinedMetricType":"ASGAverageCPUUtilization"},"TargetValue":50.0}'
Real-world example A web application configures target tracking scaling to maintain an average CPU utilization of fifty percent across its Auto Scaling Group, automatically adding instances as traffic grows and removing them as traffic subsides, without needing manually defined thresholds.

Common follow-ups: How does target tracking scaling compare to step scaling in terms of complexity and precision?;What metrics besides CPU utilization can be used for target tracking?