Topic 204 / Advanced
Error budgets
Chapter 12.5 · Service Levels
What and why
An SLO (→ 203) of 99.9% isn't a promise of perfection — it's an explicit admission that 0.1% of the window is allowed to be bad. The error budget (1 − SLO, expressed in the window's units) turns that admission into a number the team actually spends: every incident, every risky deploy, draws down the same budget, and running out of it is the trigger to stop shipping features and ship reliability instead. Builds on: → 203 (SLIs, SLOs and SLAs).
Diagram
| Quantity | Value |
|---|---|
| SLO | 99.9% over 30 days |
| Budget | 43.2 minutes |
| Consumed so far | 36.0 minutes |
| Remaining | 7.2 minutes (16.7%) |
| Policy at this remaining level | pause risky releases; prioritize reliability work |
How it works
- Compute the budget as (1 − SLO) × window, in the SLI's own units (minutes of downtime, or failed-request-equivalent minutes) — this is → 203's arithmetic, now treated as a spendable quantity.
- Track consumption in near real time as incidents occur; a full outage consumes minutes at 100% of their duration, a partial-degradation incident consumes minutes at its error rate (a 50%-error incident consumes half its duration in budget).
- Set burn-rate alerts: a fast burn (a lot of budget spent quickly) should alert sooner, over a short window; a slow burn (the budget draining gradually) should alert later, over a longer window — either way, catch the spend before the whole budget is gone, not after.
- When the budget is exhausted (or crosses an agreed low-water mark), apply the pre-agreed policy: pause further feature releases and prioritize work that stops the burn, until the budget recovers.
- An unspent, healthy budget is explicit permission to move faster — ship more often, take more deploy risk — the budget is a two-way lever on velocity, not only a brake.
Practical example
(exact arithmetic, continuing → 203). SLO = 99.9%/30 days → budget = 43.2 minutes. Two incidents this window: incident 1, a full outage, 12 minutes → consumes 12 minutes. Incident 2, 48 minutes at 50% error rate → consumes 48 × 0.5 = 24 minutes. Total consumed = 12 + 24 = 36 minutes. Remaining = 43.2 − 36 = 7.2 minutes, or 7.2 ÷ 43.2 ≈ 16.7% of the budget left for the rest of the 30-day window — enough to trigger a "slow down" policy set at, say, a 25%-remaining threshold, well before the budget hits zero.
When to use it
- Use error budgets when the team genuinely controls the velocity/reliability trade-off — feature work can actually be paused when the policy says to pause it.
- Avoid adopting the mechanism without real enforcement: a budget nobody honors under business pressure is theater, not a policy.
- Failure scenarios: a budget-exhaustion policy consistently overridden for business reasons, making the whole mechanism meaningless after the first time it's ignored; a window short enough that one bad deploy looks catastrophic even though it's a single blip in an otherwise healthy quarter; miscounting a partial-degradation incident as a full outage (or vice versa), over- or under-stating the real burn.
- Simpler alternative: for a team without the authority or process to actually pause feature work, a simpler incident count or MTTR target may be a more honest reliability metric than an error budget it can't enforce.
Practice
(numeric — drills with a verified answer key; 15–20 min). SLO = 99.9% over a 7-day window.
- Compute the window in minutes and the resulting error budget in minutes.
- One incident this window: a full outage for 4 minutes. How many budget minutes remain, and what percentage of the budget is that?
- A second incident: 10 minutes at 30% error rate. How many additional minutes does it consume?
- After both incidents, how many minutes and what percentage of the budget remain?
- If the policy pauses releases below 20% remaining, should releases be paused after both incidents?
Answer key: (1) 7×24×60 = 10,080 minutes; budget = 0.001×10,080 = 10.08 minutes. (2) remaining = 10.08 − 4 = 6.08 minutes ≈ 60.3%. (3) 10×0.30 = 3.0 minutes consumed. (4) remaining = 6.08 − 3.0 = 3.08 minutes ≈ 30.6%. (5) No — 30.6% remaining is still above the 20% pause threshold, though it's close enough to watch closely.
Done when all five answers match the key.
Key takeaway
The error budget is 1 − SLO turned into a spendable quantity; burn-rate alerts catch the spend early, and an exhausted budget is a pre-agreed trigger to ship reliability instead of features. Done when you can: compute budget consumption exactly across multiple incidents of different severity and state whether a stated policy threshold has been crossed. Used next in → 205 (incident management, where budget burn often starts the response), → 208 (cost optimization, the same velocity-versus-reliability trade-off expressed in dollars).
References
Site Reliability Engineering, 2nd edition; The Site Reliability Workbook —
see references.md.