Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Error budget | The failures an SLO allows. A 99.9% monthly SLO allows 0.1% of requests to fail: about 43 minutes of full outage a month. |
| Error budget policy | A written agreement on what happens when the budget is spent: for example, freeze risky launches until reliability work catches up. |
| Blast radius | How much breaks when one component fails: one request, one replica, one zone, the whole service. |
| Postmortem | A written, blameless analysis after an incident: what happened, why, and what will stop it happening again. |
| Game day | A planned exercise where you break something on purpose (kill a node, drop a zone) to check that the system and the people cope. |
| Silent failure | The service answers, fast and with status 200, but the answers are wrong: a broken template, a bad quantization, a tokenizer mismatch. |
| MTTR | Mean time to repair: how long a failed component stays failed. |
1. What is it?#
Module 23 teaches the mechanics of reliable inference: SLOs (23.a), failure modes (23.e), multi-region (23.f), rollouts (23.g), observability (23.h). Reliability leadership is making those mechanics work across a whole organisation, quarter after quarter: deciding what to protect, where the error budget goes, which risks to fund, and how the organisation learns from incidents.
Inference has failure modes ordinary services do not:
- Expensive, fragile hardware. GPUs and their memory fail far more often than CPUs, and a replica can span 8–72 GPUs, so one bad GPU takes out a large unit (23.e).
- Changes that alter outputs. A new engine version, kernel or quantization can make answers worse while every health check stays green (Module 28).
- Capacity that cannot be bought in minutes. When load exceeds the fleet, there is often no spare GPU to scale to (31.d), so overload must be handled by shedding, not scaling.
- Long, stateful requests. A request may stream for minutes, and an agent session may hold KV-cache state across many turns (Module 27). Restarting a replica is not invisible.
Facts checked on 13 November 2026.
2. Why does it matter?#
- Users notice inference failures immediately. A chat that stops mid-answer, a coding agent that loses its session, a voice call that goes silent.
- The budget is spent by a few causes. Section 6 shows that in a well-run fleet, GPU failures consume almost none of the error budget; deploys, overload and dependencies consume most of it. Leaders who invest by gut feeling fund the wrong thing.
- Silent quality failures are the worst incidents and the hardest to detect: they can run for days, affect every user, and never trip an availability alert.
- Reliability work competes with features. Without an explicit budget and policy, it always loses until the big outage.
3. Simple analogy#
An airline’s safety department. It does not fly planes or fix engines. It decides which risks matter most from the data, sets the rules (checklists, maintenance intervals, crew rest), runs drills, investigates every incident without blame so pilots report honestly, and has the authority to ground a fleet. Most of its findings are about procedures and communication, not about engines falling off.
4. Tiny example#
A fleet of 500 nodes, 5 requests per second each, with a 99.9% monthly availability SLO:
requests per month: 500 × 5 × 2.59 M s = 6.5 billion
error budget: 0.1% = 6.5 million failed requests (≈ 43 min of full outage)
one bad engine deploy, 15 minutes at 100% before rollback: 12% of the month's budget
44 node failures a month, in-flight requests lost: 0.2%One bad deploy per quarter costs sixty times what all the hardware failures cost. The canary process (23.g) is a better reliability investment than spare GPUs.
5. Technical explanation#
SLOs that cover what users feel#
| SLO | Measures | Owned in |
|---|---|---|
| Availability | requests that complete without error | 23.a |
| Latency | TTFT, ITL, end-to-end at p95/p99 | 23.a |
| Session continuity | agent or voice sessions that survive to the end | 31.i, 31.j |
| Quality | eval score, logprob/KL drift against a reference, user-reported bad answers | 28.e |
| Freshness / capacity | requests admitted rather than rejected at peak | 20.c |
The quality SLO is the one most organisations lack. Run a fixed probe set against production every few minutes and compare outputs or logprobs with a reference configuration. It is what catches the broken chat template at 02:00 instead of in a customer complaint on Monday.
The error budget policy#
Write it before you need it:
budget remaining > 50% ship normally
budget 0–50% risky changes (engine upgrades, precision changes) need principal sign-off
budget exhausted freeze risky changes; the next sprint's top priority is the causeThe policy turns reliability arguments into arithmetic. It also protects launches: while there is budget left, teams are free to take risks.
Where the budget goes: the failure classes#
| Class | Typical cause | Main defence |
|---|---|---|
| Bad change | engine upgrade, model, config, prompt template | canary + automatic rollback (23.g), quality probes |
| Overload | traffic spike, retry storm, one tenant | admission control, load shedding, quotas (20.c, 20.e, 21.f) |
| Dependency | gateway, auth, storage, KV store, DNS | timeouts, fallbacks, fewer critical dependencies (23.e) |
| Hardware | GPU, HBM, NVLink, NIC, node | health checks, fast eviction, spares (23.e) |
| Zone or region | power, network, cloud incident | multi-zone placement, failover (23.f) |
| Capacity | cannot get GPUs at peak, contract delay | forecast, reservations, API overflow (31.d, 31.c) |
| Silent quality | template, tokenizer, kernel numerics, bad quantization | quality SLO, logprob regression tests (Module 28) |
Measure, for every incident, which class it was and how much budget it used. After two quarters you know where to invest.
Blast radius#
Design so each failure takes out as little as possible:
- Cells: independent copies of the serving stack, each with its own gateway, router and replicas. A bad config or overload in one cell does not spread.
- Staged rollouts by cell and region, never everywhere at once (23.g).
- Per-tenant limits, so one customer’s burst cannot exhaust the fleet (21.f, 23.j).
- Smaller replicas where possible. A TP=8 replica loses 8 GPUs’ worth of capacity when one GPU fails; a 72-GPU rack-scale replica loses 72 (14.m). Large replicas need faster failover.
Degraded modes#
When capacity is short, choose what to give up before the incident (21.k):
- Shed batch and background work first (Module 27).
- Cap output length and reasoning effort.
- Route some traffic to a smaller model or to an API provider (31.c).
- Reject new sessions politely, keep existing ones.
Incidents and learning#
- Incident command: one incident commander, one communicator, the rest fix. The principal is often the technical expert in the room, not the commander.
- Blameless postmortems for every incident above a threshold, with actions that have owners and dates. Review open actions monthly; an action that never ships is a repeat incident scheduled.
- Look across incidents. The principal’s distinctive job: spotting that six “unrelated” incidents were all config changes without a canary, and funding the fix for the class.
- Game days: kill a node mid-stream, drop a zone, inject a bad template, saturate the KV store. Verify the alerts fire, the runbooks work and the on-call engineer knows what to do.
Spare capacity#
Hardware failures matter less to the error budget than to capacity. Failed nodes stay out until repaired, and on large fleets several are always out. Hold spares for the number that can be down at once, which depends mostly on how fast the provider repairs or replaces them (section 6).
6. Under the hood: the budget and the spares#
The program spends a month’s 99.9% error budget across five causes for a 500-node fleet, then sizes spare nodes for three repair times. The hardware failure rate comes from Meta’s Llama 3 report: 419 unexpected interruptions in 54 days on up to 16K H100s, about 78% from hardware. Training runs GPUs harder than serving and loses a whole job per failure, so treat it as a rough proxy. The other rates are illustrative.
// errbudget.go — where a 99.9% monthly error budget goes, and how many spare nodes to hold.
package main
import (
"fmt"
"math"
)
func main() {
const (
nodes = 500.0 // 8-GPU nodes, one replica each
rpsPerNode = 5.0
month = 30 * 86400.0
slo = 0.999
)
total := nodes * rpsPerNode * month
budget := total * (1 - slo)
fmt.Printf("requests/month %.2e, error budget %.2e failed requests (%.1f min of full outage)\n\n",
total, budget, (1-slo)*month/60)
// Hardware failure rate, from Llama 3 pre-training: 419 unexpected interruptions in 54 days on
// ~16K H100s, ~78% hardware. Training stresses GPUs harder than serving; use it as a rough proxy.
perNodeDay := 419 * 0.78 / (16384.0 / 8 * 54)
failures := perNodeDay * nodes * 30
type src struct {
name string
failed float64
}
srcs := []src{
{fmt.Sprintf("node failures (%.0f/month): in-flight + 30 s detection", failures),
failures * (100 + 30*rpsPerNode)},
{"bad engine/model deploy, 15 min at 100% before rollback (1/quarter)",
15 * 60 * nodes * rpsPerNode / 3},
{"same deploy behind a 5% canary caught in 10 min",
10 * 60 * nodes * rpsPerNode * 0.05 / 3},
{"overload: shed 10% of traffic for 30 min (2/month)",
2 * 30 * 60 * nodes * rpsPerNode * 0.10},
{"gateway/auth dependency outage, 20 min (1/quarter)",
20 * 60 * nodes * rpsPerNode / 3},
}
for _, s := range srcs {
fmt.Printf("%-70s %6.1f%% of budget\n", s.name, s.failed/budget*100)
}
// Spares: nodes down at once is roughly Poisson with mean = failures/day × repair days.
for _, repairDays := range []float64{1, 3, 7} {
mean := perNodeDay * nodes * repairDays
k, cum, p := 0, 0.0, math.Exp(-mean)
for cum+p < 0.999 {
cum += p
k++
p *= mean / float64(k)
}
fmt.Printf("repair in %.0f day(s): %.1f nodes down on average, hold %d spares for 99.9%% of days\n",
repairDays, mean, k)
}
}Output:
requests/month 6.48e+09, error budget 6.48e+06 failed requests (43.2 min of full outage)
node failures (44/month): in-flight + 30 s detection 0.2% of budget
bad engine/model deploy, 15 min at 100% before rollback (1/quarter) 11.6% of budget
same deploy behind a 5% canary caught in 10 min 0.4% of budget
overload: shed 10% of traffic for 30 min (2/month) 13.9% of budget
gateway/auth dependency outage, 20 min (1/quarter) 15.4% of budget
repair in 1 day(s): 1.5 nodes down on average, hold 6 spares for 99.9% of days
repair in 3 day(s): 4.4 nodes down on average, hold 12 spares for 99.9% of days
repair in 7 day(s): 10.3 nodes down on average, hold 22 spares for 99.9% of daysHow to read it:
- Forty-four node failures a month use 0.2% of the budget, because a good router moves traffic away within seconds. Hardware failures are a capacity problem, not an availability problem, if detection and rerouting are fast.
- One un-canaried bad deploy a quarter uses 12%; the same deploy behind a 5% canary uses 0.4%. The canary is a thirty-fold improvement for a few days of engineering.
- Overload and dependencies dominate. Admission control (20.c), retry budgets (20.e) and fewer critical dependencies are where the next dollar of reliability work goes.
- Spares depend on repair time. A provider that replaces a node in a day needs 6 spares on 500 nodes; one that takes a week needs 22. Put repair time in the contract (31.d).
- Missing from the table: silent quality incidents. They consume none of the availability budget and can be the worst incident of the year. That is why the quality SLO exists.
7. Performance implications#
- Reliability costs capacity. Spares, N+1 per zone, headroom for failover and quality probes all take GPUs. 23.c’s waterfall counts redundancy as a cost multiplier; the principal decides its size.
- Load shedding protects latency. A fleet at 100% busy has unbounded queues (20.c); shedding a few per cent keeps the rest within SLO.
- Fast failover needs warm capacity. Loading a large model takes minutes (20.h); a replacement replica that starts cold does not help a 30-second incident.
8. Production implications#
- Write and enforce an error budget policy with product leadership’s agreement.
- Add a quality SLO with production probes and logprob checks (Module 28).
- Classify every incident by failure class and budget used; review quarterly.
- Canary every change that alters outputs, including engine upgrades and prompt templates.
- Run game days at least quarterly, including a silent-quality scenario.
- Put repair times and spare policies in hardware contracts (31.d).
- Watch on-call health. Pages per shift and after-hours pages are leading indicators of both outages and attrition.
9. Common mistakes#
- Investing where it feels scary (GPU failures) instead of where the budget goes (deploys, overload, dependencies).
- No quality SLO. Health checks pass while answers are wrong.
- Shipping engine upgrades without a canary because “it’s just infrastructure”.
- Scaling as the overload plan. There may be no GPUs to scale to.
- Postmortem actions with no owner or date.
- Looking at incidents one at a time. The class is the finding.
- Huge replicas without fast failover. A rack-scale replica’s failure is a large outage.
10. Hands-on exercise#
- Run
errbudget.go. Change the SLO to 99.99%. Which causes now exceed the budget on their own? - Add retries: assume 90% of requests lost to node failures succeed on retry. What changes, and what new risk do retries create (20.e)?
- Write an error budget policy for an inference service you know: thresholds, actions and who decides.
- Design a game day for a disaggregated prefill/decode deployment (14.j). What do you break, and what do you expect to see?
- Design the quality probe set for a coding assistant: how many prompts, how often, which metric, which alert threshold?
11. Interview questions#
- Where does the error budget of a large inference service usually go?
- Why are GPU failures more a capacity problem than an availability problem?
- What is a quality SLO, and how would you implement one?
- How do you limit the blast radius of a bad engine upgrade?
- Your fleet has no spare GPUs at peak. What is the overload plan?
- Six incidents in a quarter, each “different”. What do you look for?
12. Further reading#
Checked on 13 November 2026.
- The Llama 3 herd of models (Meta, 2024), section 3.3.4 on reliability — 466 interruptions in 54 days on up to 16K H100s, 419 unexpected, about 78% hardware; 30.1% faulty GPUs and 17.2% HBM3.
- Embracing risk (Google SRE book) and Error budget policy (SRE workbook)
- Postmortem culture (Google SRE book)
- Handling overload (Google SRE book)
- 23.a (SLOs), 23.e (fault tolerance), 23.f (multi-region), 23.g (rollouts), 23.h (observability), 20.c and 20.e (admission control, retries), 28.d (evaluating serving changes), 28.e (logprob and KL regression testing), 28.f (debugging quality incidents).