SLOs & error budgets
SLI selection, burn-rate alerts, using the budget to arbitrate feature vs reliability work.
The mental model
You have a monthly data plan: 50 GB. Nobody tells you to use zero — that would mean not using your phone. You just need to stay under the cap, and when you're burning through it on day 3, you change behaviour.
An error budget is that data plan for unreliability. Set an availability target of 99.9% for a month and you have explicitly said: 43 minutes and 12 seconds of failure per month is acceptable. Not aspirational — budgeted. Spend it on risky deploys, experiments, and chaos tests. Overspend it and you stop shipping features until reliability is restored.
The three terms, in order:
- SLI (Indicator) — the measurement. "Proportion of HTTP requests returning non-5xx in under 300ms." A number, measured from the user's side.
- SLO (Objective) — the target for that number. "99.9% over a rolling 28 days." Internal, chosen by you.
- SLA (Agreement) — the contract with a customer, with money attached. Always looser than the SLO, because you want to break your own target long before you owe a refund.
The insight that makes this more than a dashboard: 100% is the wrong target. Chasing it costs exponentially more for each nine, and the user can't tell — their ISP, their WiFi and their phone are already less reliable than your service. The nines and their monthly budgets:
| SLO | Downtime per 30 days | Downtime per week |
|---|---|---|
| 99% | 7h 12m | 1h 41m |
| 99.5% | 3h 36m | 50m |
| 99.9% | 43m 12s | 10m 5s |
| 99.95% | 21m 36s | 5m 2s |
| 99.99% | 4m 19s | 1m |
Look at 99.99%: 4 minutes a month. That is less than one bad deploy plus a rollback. Committing to it changes your architecture, your deploy process and your on-call staffing — so pick it only when the business genuinely needs it.
The organisational payoff: the error budget is a shared, pre-agreed decision rule. It converts "product wants features, SRE wants stability" from a recurring argument into arithmetic. Budget remaining? Ship. Budget exhausted? Reliability work takes priority. Both sides agreed to the number in advance, when nobody was angry.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision