Targets and decisions · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Definitions
SLI | good events / valid events, measured near the user |
SLO | Target for an SLI over a window (e.g. 99.9% in 30 days) |
SLA | Contract with consequences; looser than the SLO |
Error budget | (1 − SLO) x window; the policy says what happens when it's spent |
Arithmetic
Serial (hard deps) | A = a1 x a2 x ... x an |
Parallel, independent | A = 1 − (1 − a)^2 |
Parallel, shared fraction c | unavailability ≈ c(1 − a) + ((1 − c)(1 − a))^2 |
30-day budget at 99.9% | 43.2 minutes |
30-day budget at 99.99% | 4.3 minutes |
Alerting
Burn rate | Budget consumption speed relative to exactly spending it in the window |
Page | e.g. burn rate 14.4 over 1 h (2% of a 30-day budget), confirmed on a short window |
Reversibility
One-way door (Type 1) | Consequential, hard to reverse: decide slowly, with care |
Two-way door (Type 2) | Reversible: decide fast, in small groups |
Two-way conversion | Interfaces, routers, versioned formats that keep options open |
Last responsible moment | Decide when waiting would remove an important option |
Trade-off statement
Gain | In quality-attribute scenario terms |
Give up | In the same terms |
Conditions | When the loss starts to matter |
Detection | How we'd notice, and what we'd do |
ADR fields
Status | Proposed, accepted, superseded by ADR-N |
Context / Decision / Consequences | Nygard's core structure |
Alternatives | What was rejected and why |
Revisit when | The trigger to check the decision again |