For an existing Kubernetes project, use scheduled scaling when you know when demand will rise. Consider predictive scaling when past traffic patterns can support a useful forecast. Keep live demand signals available for traffic that does not follow the plan.
Both approaches need to cover two layers: application replicas and the nodes that run them. More replicas will not serve requests while they are waiting for a node, downloading an image or failing a readiness check.
Choose the method that matches the traffic
| Method | Useful when | Main trade-off |
|---|---|---|
| Reactive | Demand changes unexpectedly. Scale from current CPU, queue depth or another useful signal. | New capacity takes time to become ready after demand arrives. |
| Scheduled | A known event or business-hours peak has a planned start time. | The schedule may provision capacity for a peak that does not happen. |
| Predictive | Demand has a recurring pattern that a forecast can estimate. | A bad forecast can leave capacity short or create unnecessary cost. |
Kubernetes Horizontal Pod Autoscaler (HPA) changes replica counts from observed metrics; it does not forecast future demand by itself. Node autoscaling handles capacity for pods that need somewhere to run. Treat their settings as parts of one capacity plan.
Start with the controllers and limits you already have
- Choose one workload. Record its current replicas, resource requests, peak traffic and acceptable response time.
- Map who changes each setting. Include HPA or KEDA, Cluster Autoscaler or Karpenter, deployment tools and scheduled jobs. Avoid two independent controllers writing the same replica or node count.
- Measure readiness time. Observe demand detection, node launch, image download, application startup and readiness checks. Use repeated measurements, including slower starts.
- Check the ceiling. Confirm replica limits, node limits, subnet capacity and the database or queue capacity the workload needs.
- Record the recovery configuration. Save the working settings and agree who can stop the rollout.
Use the cluster limits and quotas checklist before increasing the planned maximum. An earlier start does not overcome an exhausted quota or a full subnet.
Prepare both pods and nodes for a known peak
KEDA’s Cron scaler defines a time window, timezone and desired replica count. During that window, the scheduled value can act as a floor alongside other scaling triggers. It is a pod-scaling setting, not a node reservation.
If you use KEDA, bring the schedule and live demand triggers into the same agreed configuration. Review ownership of the existing HPA before moving it; do not leave a separate HPA competing for the same workload. Set minimum and maximum replicas for the application and verify the behaviour outside the scheduled window.
Example: a weekday peak at 09:00
Suppose a test environment takes up to eight minutes to add nodes and make the application ready. A starting schedule could prepare extra replicas at 08:45, leaving seven minutes for variation. These times are planning inputs to test against your own startup measurements.
- 08:45
Raise the planned replica floor. Pods that cannot fit give the node autoscaler work to place.
- Before 09:00
Confirm enough pods are ready and serving healthy responses. Check new nodes and dependencies too.
- During the peak
Let live demand request more replicas within the tested limits. Watch errors, latency and pending pods.
- After the peak
Let demand fall before removing spare capacity. Check ongoing requests and jobs before scaling down.
Choose the timezone your traffic follows and test daylight-saving changes, weekends and holidays. Set an alert for insufficient ready capacity before the event, so the team has time to respond.
If you reserve extra node capacity separately, give that change a single owner and a tested removal process. AWS warns against directly changing a managed node group’s desired size while Cluster Autoscaler controls it. A second schedule that repeatedly resets that value can conflict with the autoscaler.
Evaluate a forecast before letting it change capacity
Compare forecasts with actual demand across busy periods, quiet periods and known exceptions. Record how often the forecast falls short, how much unused capacity it would create and how early it needs to act. Compare it with a simple schedule; a more complicated system should earn its place.
AWS EC2 predictive scaling supports a forecast-only mode. It targets Auto Scaling groups, so it is not a drop-in Kubernetes pod autoscaler. Do not attach an additional node-count controller to a group already managed by Cluster Autoscaler without designing how ownership will work.
For a Kubernetes forecasting integration, check the supported versions, metric source and behaviour when a prediction is late or missing. Keep a tested baseline, a capacity ceiling and live demand scaling. Decide in advance when poor forecasts should disable prediction and return the workload to its previous settings.
Test early peaks, missing signals and scale-down
Run a controlled trial in a test environment before changing production. Agree traffic levels, spending limits and pass criteria with the workload owner.
- Traffic arrives early: check whether the current baseline and live scaling protect response time.
- The peak is larger or longer: check whether extra replicas and nodes fit within the tested limits.
- The metric or schedule fails: confirm the remaining capacity and alert behaviour.
- A node cannot launch: check that the team can identify the failure without waiting for user reports.
- Traffic falls: check that removing capacity does not interrupt active requests or long-running jobs.
A PodDisruptionBudget limits certain voluntary disruptions, but it does not protect against every failure or control a workload’s replica scale-down. Review application shutdown, workload scaling and node disruption separately.
If the trial misses the agreed response-time or error limits, stop the new schedule or forecast and restore the previous scaling configuration. Confirm healthy capacity before removing extra nodes. Record the result so the next change starts from evidence.
For the underlying resource and HPA settings, read the Kubernetes scaling guide. For help applying this to an existing cluster, see our Kubernetes review or tell us about your next traffic peak.