"Auto Scaling just knows when to scale." It doesn't. An Auto Scaling group changes size only when something tells it to, and that something is a scaling policy. Pick the wrong one and you either scale too late, while users wait, or you pay for servers nobody needs.
Target tracking: the thermostat
Target tracking is where AWS recommends you start. You choose a metric and a target value, for example average CPU utilisation at 50% or a number of requests per target behind a load balancer. The group then adds and removes instances to keep the metric near the target, the way a thermostat holds a temperature.
You don't create the CloudWatch alarms yourself; Auto Scaling manages them. The one thing to get right is the metric: it should fall when you add capacity. If doubling the instances roughly halves the metric, it's a good one.
Step scaling: bigger breach, bigger reaction
Step scaling reacts to a CloudWatch alarm you define, in steps that depend on the size of the breach. For example: CPU over 60% adds one instance, CPU over 85% adds four. It gives you more control than target tracking, at the price of more tuning.
There is also simple scaling, an older type that makes one adjustment and then waits for a cooldown period before doing anything else. For new setups, target tracking or step scaling are the better choices.
Scheduled scaling: follow the calendar
Some load is known in advance: a sale that opens at nine on Monday, a batch job every night, an office that is empty on weekends. Scheduled scaling changes the group's minimum, maximum or desired capacity at the times you set, once or on a recurring schedule. It is simple and predictable, but it only knows what you told it.
Predictive scaling: ready before the peak
Predictive scaling looks for daily and weekly patterns in your load and adds capacity before the forecast peak. It suits cyclical traffic, such as business hours, and applications that take a long time to initialise, where reacting after the load arrives is already too late.
Things to know before you turn it on:
- It needs at least 24 hours of metric history to start, and uses up to 14 days. Forecasts work better with two full weeks.
- It produces an hourly forecast for the next 48 hours and refreshes it every six hours.
- It only scales out. To remove capacity when load drops, pair it with a dynamic policy such as target tracking, which also covers surprises the forecast missed.
- It starts in forecast only mode. You can compare its predictions with what really happened, and switch to forecast and scale when you trust it.
When several policies are active, each one works out the capacity it wants, and the group uses the highest.
Where AI fits
Here the AI angle is built in: predictive scaling uses machine learning on your own history to forecast capacity. You don't train or host anything; you choose the metric and review the forecast.
It is also a good match for AI workloads themselves. A model server has to boot and then load a large model before it can answer, so capacity launched in advance (there is a setting to pre-launch instances ahead of the forecast hour) is worth more than capacity launched in a hurry. The limit is the same as for any forecast: it learns recurring patterns, not one-off events. A product launch still needs scheduled scaling or a manual bump.
Quick recap
- A group only scales when a policy tells it to.
- Target tracking is the default choice: pick a metric and a target.
- Step for finer control, scheduled for known events.
- Predictive for daily patterns: ML forecasts, scale-out only, try it in forecast only mode first.