AlgoViz

Defining high availability

easy 25 min

Availability is the share of time, or of requests, that a system works for its users.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

NINES: count the Number of nines, Inverse to downtime, Next nine is ten times less, Expensive, SLA is the promise.

An ice cream shop. Two nines: closed 3.65 days a year. Three nines: 8.76 hours. Five nines: about 5 minutes.

Cheat sheet

99%
3.65 days/year, 7.2 h/month
99.9%
8.76 h/year, 43.2 min/month
99.99%
52.6 min/year, 4.3 min/month
99.999%
5.3 min/year, 26 s/month
MTBF
time between failures, higher is better
MTTR
time to recover, lower is better
Availability
MTBF / (MTBF + MTTR)
Chain
multiply
Error budget
1 - SLO

Spot it when you see

  • "It must always be up."
  • A chain of services behind one page.
  • A contract with credits.
  • An argument about whether to release on Friday.

Tricks that stick

  • N: Number of nines in the percentage.
  • I: Inverse, more nines mean less downtime.
  • N: Next nine, ten times less downtime.
  • E: Expensive, each nine costs more.
  • S: SLA, the promise in the contract.

Do not forget

  • A percentage without a period.
  • An SLO looser than the SLA.
  • Measuring inside the server that may be dead.
  • Forgetting that dependencies multiply.
  • Mixing up durability and availability.