How is availability measured, and what do SLAs, SLOs and the 'nines' mean?
MediumConceptCAP, Consistency & Availability
Answer
Availability is the fraction of time a service works correctly, usually quoted as a number of nines. An SLI is the measured indicator (for example, the percentage of successful requests), an SLO is the target set for it, and an SLA is a contractual promise with penalties, normally looser than the SLO.
- 99.9% allows about 8.8 hours of downtime per year, 99.99% about 53 minutes, and 99.999% about 5 minutes.
- In series, availabilities multiply: two required dependencies at 99.9% each give roughly 99.8%.
- In parallel, redundancy helps: two independent replicas at 99.9% give about 99.9999%, because both must fail together.
- Each additional nine costs far more in redundancy, automation and operations.
More in CAP, Consistency & Availability
| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | What is the CAP theorem? | Concept | Easy | Read the answer to What is the CAP theorem? | |||
| 2 | What is the difference between strong consistency and eventual consistency? | Concept | Medium | Read the answer to What is the difference between strong consistency and eventual consistency? | |||
| 3 | How is availability measured, and what do SLAs, SLOs and the 'nines' mean? | Concept | Medium | Read the answer to How is availability measured, and what do SLAs, SLOs and the 'nines' mean? | |||
| 4 | How do quorum reads and writes work, and why does R + W > N matter? | Concept | Hard | Read the answer to How do quorum reads and writes work, and why does R + W > N matter? |