30-DAY WINDOWday 0 / 30ERROR BUDGET1,000 left—1slo = 0.9992total, bad = 200_000, 6003sli = 1 - bad / total4budget = round(1e6 * (1 - slo))5left = budget - bad6burn = round((1 - sli) / (1 - slo), 1)—
Back: users, the service and the SLI counterMiddle: the 30-day window and the error budget; left: the release gateFront: the maths in Python, the burn-rate gauge and the page lampRequests flow from users to the service; each answer is counted good or bad, and the SLI counter keeps the share of good ones. The SLO, 99.9% over 30 days, leaves an error budget of 1,000 failed requests: ten gold blocks. As the days fill the window, the blocks burn; budget used over window used is the burn rate. A bad release burns 14.4 times too fast and pages; at day 10 the budget is gone and the release gate lets only fixes through. The request tokens are symbolic: real error rates here are 0.1% to 1.44%, far fewer failures than the tokens show.

The idea

  1. Site reliability engineering (SRE) runs services the way software engineers would. Its first lesson: 100% reliable is the wrong target. A user on a 99% reliable phone cannot tell 99.99% from 99.999%, and each extra nine costs far more.

Measure, target, budget

A month on the budget

The policy

What happens

;; step 1/9 · nines
users feel the weakest link:
  phone, Wi-Fi, mobile network, your service

99.9%    one nine more   99.99%   99.999%
each extra nine can cost ~100x more (SRE book)

so: choose a target on purpose

The request tokens are symbolic: real error rates here are 0.1% to 1.44%, far fewer failures than the tokens show. Burn rate 1 uses the budget up exactly at the end of the window. The SRE workbook pages on 2% of the budget in 1 hour (14.4) or 5% in 6 hours (6), and opens a ticket for 10% in 3 days (1). It also checks a short window, so alerts stop soon after a fix.