How predictive scaling prepares EC2 capacity for recurring demand
Predictive scaling estimates future EC2 capacity needs from recurring patterns in historical load, then can launch instances before demand arrives. It is useful when demand repeats by time of day or day of week, but operators should compare forecasts with actual data in **ForecastOnly** mode before allowing the policy to change production capacity. This article covers predictive scaling for Amazon EC2 Auto Scaling groups, not predictive policies for other services. ([AWS: how predictive scaling works](https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-policy-overview.html), [evaluating policies](https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-graphs.html))
How predictive scaling prepares EC2 capacity for recurring demand
Predictive scaling estimates future EC2 capacity needs from recurring patterns in historical load, then can launch instances before demand arrives. It is useful when demand repeats by time of day or day of week, but operators should compare forecasts with actual data in ForecastOnly mode before allowing the policy to change production capacity. This article covers predictive scaling for Amazon EC2 Auto Scaling groups, not predictive policies for other services. (AWS: how predictive scaling works, evaluating policies)
What problem does predictive scaling solve?
Reactive scaling adds capacity after a current metric, such as CPU or request load, rises. That can be too late when launching an instance and preparing the application takes time. Predictive scaling uses recurring load patterns to provide baseline capacity ahead of an expected increase.
For example, a service that sees higher traffic every weekday morning may use its past load curve to forecast hourly capacity. A forecast is not a guarantee: holidays, incidents, campaigns, or other unusual events may differ from history. Pair predictive scaling with a dynamic policy that responds to current metrics, so unexpected spikes and forecast errors still have a response. The scope here is an EC2 Auto Scaling group. (AWS: how predictive scaling works)
What does AWS forecast, and how much data is needed?
A policy uses CloudWatch load metrics and a target utilization. AWS documentation says forecasting needs at least 24 hours of data to start. It analyzes up to 14 days of history to produce an hourly capacity forecast for the next 48 hours, then updates the forecast every six hours as new data arrives. The 24-hour minimum is only a starting threshold, not enough to establish a weekly cycle; AWS recommends two full weeks of history for more effective forecasts. A new group has little history, so allow it to collect data while the policy is in forecast-only mode. (AWS: how predictive scaling works, creating a policy)
Choose metrics that represent the workload’s total demand and the behavior most important to scale. Predefined choices include CPU, network traffic, and Application Load Balancer requests per target; custom CloudWatch metric pairs are also supported. Check that capacity and utilization metrics behave proportionally as instance count changes. If a group mixes instance types with substantially different capacity, the assumption that each instance is equivalent may fail and forecasts may be inaccurate. (AWS: creating a policy, how predictive scaling works)
How should you move from forecast-only to active scaling?
In forecast-only mode, the policy creates forecasts without changing the group’s actual capacity. Compare forecast load with observed load and forecast capacity with instances actually launched. The EC2 Auto Scaling console also provides policy evaluations and availability and cost impact recommendations. Those recommendations are intended for policies evaluated in forecast-only mode; switching to active scaling and later switching back can bias the evaluation because the policy has already affected capacity. (AWS: evaluating predictive scaling policies)
Consider a hypothetical web service with a recurring weekday morning peak. Select a metric that represents its requests and instance readiness, observe at least two weeks of forecast behavior, and compare the peak timing and size against actual data. Only then consider ForecastAndScale. You can schedule instances to launch ahead of the forecast, but set default instance warmup to reflect how long they need before they can serve traffic. By default, scaling actions align with the start of each hour. (AWS: how predictive scaling works, creating a policy)
When does predictive scaling remove capacity?
Predictive scaling can add capacity for forecast increases, but it does not remove instances solely because a decrease is forecast. To reclaim capacity after demand actually falls, configure a dynamic scaling policy such as target tracking or step scaling. When multiple policies are active, the group uses the highest desired capacity they calculate. A useful mental model is that predictive scaling prepares baseline capacity while dynamic scaling responds to current conditions. (AWS: how predictive scaling works)
Review maximum capacity separately. By default, the group’s maximum instance count limits scaling. If forecasts repeatedly reach that limit, adjust the limit or consider the option to increase it automatically. Use that option carefully: an automatically increased maximum does not return to its original value on its own, so capacity and cost controls need follow-up. (AWS: how predictive scaling works)
What should you check when forecasts are inaccurate or scaling is late?
First verify that the policy receives data, that the load metric represents the application’s full demand, and that custom metric queries return data. If forecasts repeatedly miss a daily peak or recommend too much capacity, compare historical forecasts with actual load in the monitoring graphs. More history is not always better after a workload pattern changes; consider both the evaluation period and when the change occurred. (AWS: evaluating policies, creating a policy)
If the forecast looks right but capacity is insufficient, check whether the maximum capacity is binding and whether the pre-launch time allows for instance startup and application initialization. Also review interactions between dynamic-policy warmup and scale-in settings. If capacity launches too early or in excess, revisit the target utilization, input metric, and any automatic maximum-capacity increase. Keep observing or correct the metric before enabling active scaling when forecast-only results do not match the expected demand pattern.
Official documentation
[How predictive scaling works](https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-policy-overview.html)
[Create a predictive scaling policy](https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-create-policy.html)
[Evaluate predictive scaling policies](https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-graphs.html)