Part 12 · Revision sheet

Reliability, Testing and Production Operations

Key Terms

  • High availability (HA) — hitting a stated availability target by removing single points of failure and composing components so combined uptime meets it (→ 192)
  • Fault tolerance / failure isolation — keep operating through a failure while containing it inside a drawn blast-radius boundary (→ 193)
  • Active–passive — a standby stays idle until a detected failure promotes it; simpler, but promotion costs recovery time (→ 194)
  • Active–active — every redundant unit serves simultaneously; no promotion delay, but conflicting writes must be handled (→ 194)
  • Split-brain — two units both believe they are primary at once during an automatic failover (→ 194)
  • RPO / RTO — maximum acceptable data loss (time since last recoverable point) and maximum acceptable time to restore service — the two numbers that select a DR tier (→ 195)
  • Contract testing — a consumer's recorded expectations replayed against the provider's own CI, without running either side's full stack (→ 198)
  • Chaos testing — deliberately injecting a controlled, bounded fault to see if a resilience pattern engages as designed (→ 200)
  • SLI / SLO / SLA — a measured indicator → the internal target over a stated window → the looser external contract with a penalty (→ 203)
  • Error budget — 1 − SLO turned into a spendable quantity of allowed unreliability (→ 204)
  • Incident commander — the one person coordinating a declared incident's response (→ 205)
  • Blameless postmortem — a written record of timeline, measured impact, plural contributing factors and owned action items, about the system, not a person (→ 206)

Decision Rules

  • Before adding redundancy, fix whatever component has the worst availability in a serial chain (→ 192)
  • Use active–passive when a bounded failover window is worth more than conflict-handling complexity; use active–active when near-zero failover time is worth that complexity (→ 194)
  • Pick the cheapest DR tier that meets the stated RPO and RTO, not the tier that sounds most impressive (→ 195)
  • Shape a test suite as a pyramid — many unit tests, fewer component/integration, a handful of end-to-end — never an inverted ice-cream cone (→ 197)
  • Adopt contract testing only once multiple services evolve independently; for one or two services, a direct integration test is simpler (→ 198)
  • Alert on the symptom a user feels (SLO burn), not on every underlying cause (→ 202)
  • Set an SLA looser than its matching SLO, leaving an operational buffer (→ 203)
  • Mitigate an incident first; diagnose the full root cause later (→ 205)
  • Never stop root cause analysis at "human error" — it almost always hides a systemic, fixable gap (→ 206)
  • Re-verify production readiness before every major change — it is never a one-time tick (→ 207)
  • Chase cost optimization once traffic and the bill are real; don't micro-optimize an early-stage system still being figured out (→ 208)

Numbers & Formulas

  • Availability = uptime ÷ (uptime + downtime), over a stated period (→ 192)
  • Serial composition: combined availability = product of each component's availability (→ 192)
  • Parallel/redundant composition: combined unavailability = product of each component's unavailability (→ 192)
  • Downtime/year = unavailability × 8,760 hours (365-day year) (→ 192)
  • Nines table: 99% (1% unavail.) → 87.6 h/yr; 99.5% (0.5%) → 43.8 h/yr; 99.9% (0.1%) → 8.76 h/yr; 99.95% (0.05%) → 4.38 h/yr; 99.99% (0.01%) → 52.56 min/yr; 99.999% (0.001%) → 5.256 min/yr (→ 192)
  • Error budget = (1 − SLO) × window, expressed in the SLI's own units (→ 203, 204)
  • Budget consumption: a full outage consumes minutes at 100% of its duration; a partial-degradation incident consumes duration × its error rate (→ 204)

Traps

  • Redundant components sharing a hidden single point of failure (power feed, region, pool) breaks the independence the parallel-composition math assumed (→ 192, 193)
  • An automatic failover mechanism that has never been exercised is unverified, not available (→ 194, 200)
  • A backup never restored, or a DR plan never drilled, is assumed broken until proven otherwise (→ 195)
  • Cause-based paging (raw CPU, a single error) buries real pages in noise until on-call ignores them by habit (→ 202)
  • An action item with no named owner is a wish, not a fix, and guarantees a repeat incident (→ 206)

Self-Quiz

  1. Can you compute combined availability and downtime/year for a serial or parallel arrangement of components? (no → revisit 192)
  2. Can you name the mechanism that prevents split-brain in an automatic failover design? (no → revisit 194)
  3. Can you pick a DR tier from stated RPO and RTO numbers? (no → revisit 195)
  4. Can you classify a metric into golden signals/RED/USE and decide whether a given alert should page, log, or be deleted? (no → revisit 202)
  5. Can you compute error-budget consumption across multiple incidents of different severity and say whether a pause threshold has been crossed? (no → revisit 204)

Search the guide