Log inStart free
LESSON 33.11 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Reactive vs predictive scaling and cold starts

Watch GPUs arrive late or early for a tenfold spike, and why startup time matters.


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

Go Pro · $8.25/mo
EXPLAINER · 33.11 · AUTOSCALERPEAK 40 REQ/S · NO FORECAST
01
Stage 1 of 5 · The spike
Requests rise from 4 to 40 per second between minute 3 and minute 8. Reactive scaling reads no forecast.
Explain it simply

The teal hill is the traffic. It grows ten times in five minutes. On the left, the night before had no requests at all. This autoscaler has no forecast. It only sees requests that already came.

Requests per second over 20 minutes, after a night with no requests. They rise from 4 to 40 between minute 3 and minute 8. No forecast is shown.

requestsforecast and TTFTGPUs and startuplate requests
204048121101001k02468101214161820 minnight 8 hrequests per second (no forecast)GPUs0/sThe spikepeak 40 req/s · no forecast204048121101001k02468101214161820 minnight 8 hrequests per second (no forecast)GPUs0/sThe spikepeak 40 req/s · no forecast
Toy: a quiet night, then 20 minutes of chat traffic, 0 to 20 GPUs
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
r(t)\sy{r}{data}{r(t)}
rmax⁡=40 req/sr_{\max} = 40\ \text{req/s}

The requests per second at time t.

Common mix-ups

MYTHPredictive scaling makes reactive scaling unneeded.

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

Predict, then reveal
3 CHECKS · PRO
Q01With reactive scaling and 2 minimum GPUs, what share is late if startup drops to 15 s?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 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.