Skip to content
System design · 9 min

Error budgets in one page

Interviewers ask about SLOs to find out whether you can turn a reliability goal into a number you can act on. This lesson covers the arithmetic you need to do in your head and the two or three sentences that show you understand what the number is for.

From SLO to budget

An SLO of 99.9% availability over 30 days leaves 0.1% of requests allowed to fail. If the service does 100M requests a month, the budget is 100,000 failed requests. In time terms, 0.1% of 30 days is 43.2 minutes of total outage. Memorise the time version for the common targets: 99.5% is 3.6 hours a month, 99.9% is 43 minutes, 99.95% is 21.6 minutes, 99.99% is 4.3 minutes.

budget_fraction = 1 − SLO
budget_requests = total_requests × budget_fraction
budget_minutes  = 30 × 24 × 60 × budget_fraction   # for a 30-day window

99.9% → 0.001 × 43,200 min = 43.2 min

Burn rate

Burn rate is how fast you are consuming the budget relative to the rate that would exactly exhaust it at the end of the window. A burn rate of 1 means you will land precisely on the SLO. A burn rate of 14.2, as in the disk scenario header, means at the current error rate the whole monthly budget is gone in 30 ÷ 14.2 ≈ 2.1 days.

burn_rate = observed_error_rate / (1 − SLO)

4.1% errors against a 99.7% SLO:
0.041 / 0.003 = 13.7×

Alerting on burn

Alert on burn rate, not raw error rate, and use two windows so a fast burn pages you quickly while a slow burn still gets noticed. A standard pair is 14.4× over one hour (2% of the budget in an hour) and 6× over six hours (5% in six hours). Each alert also checks a short window (5 minutes, 30 minutes) so it stops firing when the problem stops.

Why 14.4?A 30-day budget has 720 hours. Spending 2% of it in one hour means burning 0.02 × 720 = 14.4 hours' worth of budget in one hour: burn rate 14.4.

The decision the budget buys

The budget exists to make one decision cheaply: ship or stabilise. When the budget is healthy, the team ships; when it is nearly spent, the team freezes risky launches and works on reliability until it recovers. This is the sentence interviewers want to hear in the pushback behavioral prompt and the operability section of a design. Without a budget, every launch argument is opinion against opinion.

Linked exercise · needs a computer · 12 minEstimate: global metrics ingestRead it here, do it on a computer

Interview phrasing

  • "Our SLO is 99.9% over 30 days, so we get about 43 minutes of downtime a month. We're burning at 14× right now, which means the budget is gone in two days unless we mitigate."
  • "I'd alert on burn rate with a fast and a slow window rather than on error rate, so a slow regression still pages before the budget is gone."
  • "The budget is what lets me say no to a launch without it being personal: we have 8% left, so we freeze."