Convert between nines, minutes and repair time
Downtime per month and per year from an availability, the availability from MTBF and MTTR, and the MTTR a target requires — which is usually the cheaper lever.
Nines are a fraction, and everything else in this course is what happens to that fraction under composition: chains multiply it down, redundancy multiplies it up but only if the failures are independent, retries multiply load exactly when the system can least afford it, and three copies of a file are safe in proportion to how fast a lost copy is replaced. Every claim is a probability you compute.
Overview
By the end you can convert nines into minutes, compose availability in series and in parallel while naming the assumption that lets you, compute what a retry policy does to load, and put a number on both durability and blast radius.
Downtime per month and per year from an availability, the availability from MTBF and MTTR, and the MTTR a target requires — which is usually the cheaper lever.
The product for a chain, 1 − ∏(1 − Aᵢ) for redundant paths, the binomial tail for k-of-n, and the common-cause term that makes all three optimistic when it is not zero.
Expected attempts and success for a policy, the fixed point of a retry loop that can sit above ρ = 1 when the un-retried load was fine, and the synchronised waves that backoff without jitter produces.
The annual probability of losing every copy of a replicated item and what halving the repair window does to it; and the probability two tenants share every node under shuffle sharding.
Lessons
The fraction first, then composition in three shapes, then the two ways a system makes its own load worse, and last the two questions that are about sets of machines rather than one: durability and blast radius.
Capacity Estimation and Queues and Utilisation. Discrete Mathematics: independence, the binomial distribution, combinations, conditional probability and expected value. Algebra: geometric sequences and series.
Say the independence assumption out loud every time you multiply. Four of this course’s formulas are exactly right under independence and badly wrong without it, and “Correlated Failure” is the lesson that measures how wrong.
Do the retry-storm iteration by hand for three steps. A fixed point is easier to believe when you have watched the first three iterates move away from where you expected.
Keep availability as a fraction, not a percentage, inside any calculation. The interesting differences on this course are in the fourth decimal place and percentages hide them.
Incident process, on-call practice and chaos engineering as a discipline.
Consensus availability, which needs the quorum arithmetic of Replication and Consistency.
Failure-rate models over time. Every failure here has a constant rate; bathtub curves and wear-out are out of scope.