Definition · The episodeA system drains at μ. The arrival rate is λ_before until the spike, λ_spike for d seconds, then λ_after. The excess is λ_spike − μ, the peak backlog is that excess times d when positive and zero otherwise, the headroom afterwards is μ − λ_after, and the drain time is the backlog divided by the headroom.
Two conditions are worth checking before any of it: the system must have been stable before the spike, or the backlog did not start at zero; and the headroom afterwards must be positive, or there is no drain time at all and the backlog is permanent.
μ = 1000 / s λ_before = 800 / s
λ_spike = 1500 / s for d = 60 s λ_after = 800 / s
excess 1500 − 1000 = 500 / s
peak 500 × 60 = 30 000 waiting, at the end of the spike
headroom 1000 − 800 = 200 / s
drain 30 000 ÷ 200 = 150 s
lag 30 000 ÷ 1000 = 30 s the worst a consumer is behind
total 60 + 150 = 210 s
A minute of overload, three and a half minutes of incident. The asymmetry is entirely in the two rates: work arrived 500 a second faster than it could be handled and leaves only 200 a second faster, so every second of the spike costs two and a half seconds of recovery.
That ratio is the useful generalisation: the recovery is excess ÷ headroom times the length of the spike. Systems run close to μ have very little headroom, so their recovery multiplier is large — another form of the knee, and another reason a target utilisation is chosen rather than a maximum one.
What the consumer sees
The backlog rises linearly to 30 000 at t = 60, then falls linearly to zero at t = 210, so at t = 30 it is 15 000 on the way up and at t = 135 it is 15 000 again on the way down. Lag follows the same shape divided by μ: nothing, then thirty seconds at the moment the surge ends, then a slow return. An alert on lag fires late in the spike and clears long after it, which is exactly what the arithmetic says should happen.
Example · A spike with nowhere to drainKeep everything the same but let the arrival rate return to 1000 rather than 800. The headroom is now zero, the drain time is undefined, and the 30 000 that accumulated is permanent: the system is stable in the sense that the backlog stops growing, and the lag stays at thirty seconds for ever. Recovery is not a property of a spike ending; it is a property of the headroom that follows it.
Example · A spike that is not oneA surge to 900 a second against μ = 1000 builds nothing at all, however long it lasts. There is no excess, so there is no area. What that surge does do is raise ρ from 4/5 to 9/10, which the knee says multiplies the response time by two — a real effect, and a different one from a backlog.
The controls are the familiar ones, in a new arrangement. More headroom shortens the drain and every other quantity on this page. A bounded queue or a token bucket caps the area by refusing part of the spike, trading the backlog for loss. And smoothing the arrivals — the variability lesson's c_a² — reduces how much of a surge is a spike at all.
This is also the lesson that says when the rest of the course applies. Every steady-state formula here describes a system whose load has been constant long enough to settle; during a spike, none of them is true, and the honest calculation is the area. Afterwards they become true again, which is what the drain time is measuring — the time until the model's assumption is met.