How does autoscaling relate to capacity planning?
AdvancedConceptCapacity, Load Testing & Chaos Engineering
Answer
Autoscaling (HPA, KEDA, Cluster Autoscaler, Karpenter, AWS Auto Scaling groups) handles short-term variation, but capacity planning is still needed because:
- Autoscalers react with a delay (metrics window, pod startup, node provisioning), so spikes need headroom.
- They hit limits:
maxReplicas, cloud quotas, IP addresses in subnets, database connection limits. - Some resources do not autoscale: databases, licenses, third-party rate limits.
- Cost and reserved-capacity commitments need forecasts.
Load test the autoscaling behaviour itself with a spike test.
More on Capacity, Load Testing & Chaos Engineering
What is capacity planning in SRE?BeginnerWhat is N+1 and N+2 redundancy for capacity?BeginnerHow do you calculate how many instances you need?IntermediateWhat is the difference between load, stress, spike, soak and breakpoint testing?BeginnerWhat is k6 and why do SRE teams use it?BeginnerWrite a minimal k6 test with SLO thresholds.Intermediate