NEW
Also known as: Elastic Compute Scaling
Adjusting compute resources horizontally or vertically to match workload demand while controlling performance, availability, and cost.
DESCRIPTION
Compute scaling enables systems to adapt capacity in response to load. Horizontal scaling adds or removes instances, while vertical scaling changes instance size. Autoscaling policies react to metrics like CPU, latency, or queue depth, often integrated with load balancers. Kubernetes HPA/VPA and cloud auto scaling groups automate adjustments. Effective scaling requires right-sizing, warm pools, and predictive triggers. Observability and chaos testing validate scaling behavior. Poor policies risk thrashing, SLO violations, or cost spikes.
ALTERNATIVE DEFINITIONS
AWS
AWS Auto Scaling monitors your applications and automatically adjusts capacity to maintain steady, predictable performance at the lowest possible cost.
Emphasizes automatic capacity adjustments for performance and cost.
Kubernetes
The Horizontal Pod Autoscaler automatically scales the number of pods in a replication controller, deployment, or replica set based on observed CPU utilization or custom metrics.
Concrete definition for containerized workloads using HPA.
Google Cloud
The autoscaler adds or removes VM instances to a managed instance group in response to load, maintaining target utilization for your applications.
Focuses on VM instance groups and target utilization.
RELATED TERMS
Elasticity (Cloud Computing) Kubernetes HPA AWS Auto Scaling Load Balancer Capacity Planning Cost Optimization Auto Scaling Groups Serverless Sharding Queue-Based Decoupling
COMPETING TERMS
Fixed Capacity
RELATIONS
- Broader: Scaling
- Narrower: Autoscaling
KNOWLEDGE AREAS
Cloud Infrastructure Platform & Tooling Data Engineering Observability & Telemetry
TARGET AUDIENCE
Cloud Architect DevOps Engineer IT Manager Software Architect Data Engineer MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Elasticity (cloud computing)
- Kubernetes - HPA scaling documentation
- AWS - AWS Auto Scaling overview
- Google Cloud - GCE autoscaler details
- Microsoft Azure - Azure autoscale overview
TOP QUESTIONS
What is compute scaling and why is it important?
It adjusts capacity to meet demand, ensuring performance and availability while managing cost. It’s essential for variable workloads and SLO compliance.
Category: Relevancy
What’s the difference between horizontal and vertical scaling?
Horizontal adds/removes instances for elasticity; vertical grows/shrinks instance size. Horizontal often improves fault tolerance.
Category: Comparison
Which metrics trigger autoscaling?
CPU, memory, latency, requests per second, and queue depth are common. Custom SLO-aligned metrics are best.
Category: Management
What are common pitfalls in compute scaling?
Aggressive policies cause thrashing; slow scale-out misses spikes. Missing warm pools and poor readiness probes hurt availability.
Category: Mistakes
How does compute scaling affect cost?
Autoscaling avoids overprovisioning but can spike costs during bursts. Budgets, quotas, and predictive scaling help control spend.
Category: Risks
What role do load balancers play in scaling?
They distribute traffic among instances and integrate with autoscaling to add or remove targets seamlessly.
Category: Concepts
How to test compute scaling strategies?
Use load tests, game days, and chaos engineering. Validate response times, error rates, and scaling latency.
Category: Testing
Does serverless remove the need for scaling?
Serverless abstracts scaling but still requires concurrency, timeout, and cost controls. Cold starts and limits apply.
Category: Misunderstanding
How does Kubernetes HPA differ from VPA?
HPA scales pod counts; VPA adjusts resource requests/limits. They can conflict if misconfigured.
Category: Comparison