Log inStart free
LESSON 33.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Autoscaling through a traffic spike

Watch three autoscalers meet a tenfold spike, with slow or fast startups.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 33.C1 · AUTOSCALERPEAK 40 REQ/S · NEEDS 8 GPUS
01
Stage 1 of 6 · The spike
Requests rise 10× in 5 minutes, from 4 to 40 per second. The peak load needs 8 GPUs.
Explain it simply

The teal hill is the traffic. Each request holds a GPU for 11 seconds, and one GPU holds 64 requests at once. The grey dotted line counts the GPUs this load needs, up to 8. The fleet starts with 2.

Requests per second over 20 minutes: 4 until minute 3, then rising to 40 by minute 8. They stay at 40 to minute 14 and fall to 4 by minute 15. A dotted line shows the GPUs the load needs, up to 8.

requests and the signalGPUs, startup and targetsforecast and TTFTlate requests, signal off the scale
20405101520024681012141620 minrequests per secondGPUs the load needs (dotted)needs 8The spikepeak 40 req/s · a GPU holds 64 requests, each for 11 sneed at 6:59: ⌈372 / 64⌉ = 6 GPUs20405101520024681012141620 minrequests per secondGPUs the load needs (dotted)needs 8The spikepeak 40 req/s · a GPU holds 64 requests, each for 11 sneed at 6:59: ⌈372 / 64⌉ = 6 GPUs
Toy: 20 minutes of chat traffic, 4 to 40 requests a second, 2 to 20 GPUs
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
nneed=⌈q11 s/64⌉\sy{need}{param}{n_{\text{need}}} = \left\lceil \sy{q}{data}{q_{11\,\text{s}}} / 64 \right\rceil
t=8:07: ⌈451/64⌉=8t = 8:07:\ \lceil 451 / 64 \rceil = 8

GPUs needed: the requests of the last 11 s over 64 per GPU.

Common mix-ups

MYTHGPU utilization asks first, so it is never late.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With request rate alone and a 180 s startup, what share is late?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.