Autoscaling

Automatically increasing or decreasing computing resources as demand changes.

Did the extra replicas arrive in time?

A fictional service has a two-minute startup delay. Demand jumps at 10:00. Its controller requests two more replicas at 10:01; they become ready at 10:03.

Desired capacity
The controller recorded a request at 10:01. The desired count can rise immediately.
Available capacity
Requests still queue until health checks pass and new workers accept traffic at 10:03.

Interpret the graph

Plot demand, desired capacity, ready capacity and waiting time on the same axis. A final count that looks adequate can conceal a short interval of poor service.

How Autoscaling Works

Basic autoscaling reacts to thresholds such as CPU, memory, queue depth, or request rate. More advanced systems use forecasting to add capacity before demand arrives, or combine multiple signals so scaling decisions reflect latency, throughput, and business importance instead of a single utilization metric.

In modern platforms, autoscaling often works alongside load balancing, telemetry, and time series forecasting. The scaler decides how much capacity should exist, while the rest of the system decides where that capacity should run and how traffic should use it.

Why It Matters

Autoscaling matters because demand is rarely flat. User traffic, batch work, seasonal events, and system failures all change how much infrastructure an application needs. Good autoscaling reduces latency during peaks and trims waste during quiet periods, which makes it central to cloud efficiency, reliability, and cost control.

What Good Autoscaling Needs

A strong autoscaling system does more than react fast. It needs good data, sensible guardrails, and a clear policy for tradeoffs such as cost versus QoS risk. In practice, teams often pair forecast-based scaling with reactive fallbacks so sudden surges still get immediate protection.

Follow the idea

Examples in the AI guides

Related Yenra articles (3)
Related concepts (5)

Source · Kubernetes documentation on horizontal autoscaling

Return to Autoscaling in the A–Z glossary