Log inStart free
LESSON 33.10 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Autoscaling signals

Watch an autoscaler follow one signal through a tenfold traffic spike.


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.10 · AUTOSCALERPEAK 40 REQ/S · NEEDS 8 GPUS
01
Stage 1 of 6 · The spike
Requests rise from 4 to 40 per second between minute 3 and minute 8. At the peak, their KV cache needs 8 GPUs.
Explain it simply

The teal hill is the traffic. It grows ten times in five minutes. Each request keeps its prompt and its answer in GPU memory for about 11 seconds. The dotted line counts the GPUs that this memory fills: 8 at the peak.

Requests per second over 20 minutes. They rise from 4 to 40 between minute 3 and minute 8 and fall back after minute 14. The load needs up to 8 GPUs.

requests and the signalGPUs and targetsTTFTlate requests
20402×4×6×816241101001,00002468101214161820 minrequests per second (steady chat light, launch traffic solid)launch: 1,000-token promptsGPUs: 2 fixed (filled), needed by the load (dotted)needed 8The spikeminute 6: KV tokens of the last 11 s of requests = 465,000465,000 ÷ 80,000 KV tokens a GPU → 6 GPUs needed20402×4×6×816241101001,00002468101214161820 minrequests per second (steady chat light, launch traffic solid)launch: 1,000-token promptsGPUs: 2 fixed (filled), needed by the load (dotted)needed 8The spikeminute 6: KV tokens of the last 11 s of requests = 465,000465,000 ÷ 80,000 KV tokens a GPU → 6 GPUs needed
Toy: 20 minutes of chat traffic, 2 to 20 GPUs
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
GPUs=⌈KV tokens/80,000⌉\sy{need}{param}{\text{GPUs}} = \left\lceil \sy{rate}{data}{\text{KV tokens}} / 80{,}000 \right\rceil
peak at 8:07: 8 GPUs\text{peak at 8:07: } 8\ \text{GPUs}

The KV tokens in use, divided by one GPU's KV cache, rounded up.

Common mix-ups

MYTHGPU utilization shows how loaded an LLM server is.

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

Predict, then reveal
3 CHECKS · PRO
Q01With long prompts and scaling out, which signal leaves fewer requests 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.