SimuVedaSystem Design Lab Open in the lab

DevOps and cloud / Intermediate / 5 min / Updated

Autoscaling: adding servers before users notice

Traffic spikes; the autoscaler adds servers by CPU target. Boot time, target CPU and cooldown trade dropped requests against cost.

Start the simulation → Change the load, break a part, watch what happens. Free, no sign-up.

In short

What is autoscaling?

Autoscaling adds servers when a metric like CPU is above a target and removes them when it falls, so capacity follows traffic.

Why does it matter?

Paying for peak capacity all day is wasteful, but too few servers drop requests. Autoscaling keeps both under control.

What is the trade-off?

A low CPU target leaves headroom for spikes while new servers boot, but costs more. Cooldowns stop flapping but slow scale-in.

How do you explain it in an interview?

"Target tracking around 60% CPU, fast scale-out, slow scale-in with a cooldown, and warm pools or scheduled scaling for known peaks."

Check yourself

Traffic triples in a second. Why are requests still dropped with autoscaling on?

Answer: New servers take time to boot before they can serve. Scaling reacts to a metric and new capacity has boot time. Headroom, warm pools or scheduled scaling cover the gap.

What does a lower target CPU (say 40% instead of 80%) buy?

Answer: More spare capacity to absorb spikes while new servers boot. You pay for idle headroom to protect latency and avoid drops during the scale-out delay.

Why have a scale-in cooldown?

Answer: To stop the fleet flapping up and down on noisy traffic. Without it, every dip removes servers that the next bump needs again, wasting boots and risking drops.

See it happen in the simulation →

autoscalinghpaauto scaling grouptarget trackingcooldownelasticityclouddevops

More in devops and cloud