The idea
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 service level indicator (SLI) measures what users feel: good events divided by all events. Here a request is good if it is answered correctly and fast enough. The counter keeps that running share.
A service level objective (SLO) is a target for an SLI over a time window. Ours: 99.9% of requests good over a rolling 30 days. An SLA is a contract with penalties, usually looser than the SLO.
The error budget is 1 − SLO: the failures you may have. 0.1% of the 1,000,000 requests expected in 30 days is 1,000 bad requests, ten blocks of 100. In time, it is 43.2 minutes of full outage.
A month on the budget
Days 1 to 3: normal releases, 100 failed requests. 10% of the budget is gone after 10% of the window. That ratio is the burn rate. At 1.0 the budget lasts exactly 30 days, so the team keeps shipping.
Day 4: a release passes the open gate and breaks checkout. In one hour 2% of the budget burns, a burn rate of 14.4. Google's SRE workbook suggests paging at exactly this point: an urgent alert wakes the on-call engineer now.
By day 6, 600 requests have failed: 60% of the budget in 20% of the window, a burn rate of 3.0. That equals the error rate, 0.3%, over the 0.1% allowed. At 3× a 30-day budget lasts 10 days.
The policy
Days 7 to 10: the fix is slow and failures continue at 3×. On day 10 the budget hits zero, as predicted. The team's error budget policy kicks in: feature releases stop until the service is back within its SLO.
Fixes and security patches still pass the gate. Product, developers and SREs agreed this policy in advance, so no one argues mid-incident. One shared number decides: budget left, ship faster; budget gone, work on reliability.
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.