Reference · Printable One-Pager
SLI vs SLO vs SLA, the SLI menu, the nines, the budget math, and the five classic mistakes — companion to Lesson 07. Source: Google SRE Book, Ch. 3–4 (free at sre.google).
| Term | Definition | Owner | Remember it as |
|---|---|---|---|
| SLI Service Level Indicator | A quantified measurement of one aspect of service level, defined over real user interactions (e.g., proportion of HTTP requests returning 2xx/3xx in < 300 ms, measured at the load balancer). | Engineering | What you measure |
| SLO Service Level Objective | The target value (or range) you choose for an SLI, over a window (e.g., 99.9% of requests good, rolling 30 days). Internal; chosen from user needs, not current performance. | Product + engineering | What you promise yourself |
| SLA Service Level Agreement | A contract with customers with consequences (credits, penalties) for missing it. Always set looser than the SLO so the internal target trips first. | Business / legal | What you promise customers |
Pick 1–3 per critical user journey. Every SLI is a ratio: good events ÷ valid events. Specify where it's measured and what counts as good — or it isn't an SLI yet.
| SLI type | Question it answers | Example specification |
|---|---|---|
| Availability | Did the service respond successfully? | % of requests to /api/* returning non-5xx, at the load balancer |
| Latency | Did it respond fast enough? | % of successful requests completing in < 300 ms (use a threshold ratio or a high percentile — never the average) |
| Throughput | Can it keep up with demand? | % of minutes where processed events ≥ 95% of enqueued events |
| Correctness | Was the answer right? | % of records where pipeline output matches a golden/known-good result |
| Freshness | Is the data recent enough? | % of reads served from data updated within the last 5 minutes |
| SLO | Allowed downtime / 30-day month | Roughly means |
|---|---|---|
| 99% ("two nines") | 7 h 12 m | Humans fix it during business hours |
| 99.5% | 3 h 36 m | Humans fix it, with urgency |
| 99.9% ("three nines") | 43 m 12 s | On-call with paging; the common serious-service target |
| 99.95% | 21 m 36 s | Paging + fast, rehearsed mitigation |
| 99.99% ("four nines") | 4 m 19 s | Automated failover — humans are too slow |
Rule of thumb: each extra nine costs ~10× more and delivers benefit only if users can perceive it — beyond their own device/ISP reliability, they can't.