Course map

Part 12

Reliability, Testing and Production Operations

Test, operate, monitor and recover a production system, and control its cost.

Prerequisites Parts 9 and 11.
Part context

Cross-references: backup and restore → 80; capacity planning → 102; security testing → 172.

Reading track

12.1 High Availability and Failover

Chapter outcomes and context

Topics covered: 192 High availability (Core) · 193 Fault tolerance and failure isolation (Core) · 194 Redundancy and failover: active–passive, active–active (Core)

Learning outcomes

  • Do the availability math: serial components multiply unavailability; redundancy divides it — but only when failures are independent (beware shared dependencies).
  • Eliminate single points of failure; bound the blast radius with isolated failure domains (AZ → 175, shard → 73, bulkhead → 153, cell → 212).
  • Design failover: active–passive (standby promoted on failure — simpler, costs recovery time) vs. active–active (all sites serve — costs conflict handling). Automatic failover needs reliable failure detection (→ 127), must itself be tested, and must not split-brain (→ 133).
192High availabilityCore193Fault tolerance and failure isolationCore194Redundancy and failover: active–passive, active–activeCore

12.2 Disaster Recovery

Chapter outcomes and context

Topics covered: 195 Disaster recovery, RTO and RPO: recovery drills, business continuity (Core) · 196 Multi-region traffic and failover (Advanced)

Learning outcomes

  • Drive DR from two numbers: RPO (maximum acceptable data loss) and RTO (maximum acceptable downtime). They select the tier — backup-restore → pilot light → warm standby → multi-site active-active; each order of magnitude of RTO/RPO costs roughly an order of magnitude more.
  • Run recovery drills on a schedule — restore tests (→ 80) and failover exercises — and place DR inside business continuity: people, communication, and dependencies, not just data. An unexercised DR plan is assumed broken.
  • (Advanced) Orchestrate multi-region traffic and failover (primary home): health-checked DNS or anycast steering (mechanics → 94), draining and shifting traffic, the runbook for regional evacuation. Boundary: where the data lives and stays consistent is topic 142; steady-state routing mechanics are topic 94; this topic is the failover orchestration.
195Disaster recovery, RTO and RPO: recovery drills, business continuityCore196Multi-region traffic and failoverAdvanced

12.3 Testing Strategies

Chapter outcomes and context

Topics covered: 197 Testing strategy and test levels: unit, component, integration, end-to-end, regression, migration, recovery (Core) · 198 Contract testing between services (Advanced) · 199 Load, stress, spike and soak testing (Core) · 200 Resilience and chaos testing (Advanced)

Learning outcomes

  • Shape the test strategy by level — unit (fast, isolated), component (one service with real dependencies containerized), integration, end-to-end (few, critical journeys only), regression (what broke before must stay fixed), migration (schema and data moves tested before production → 189), recovery (restore and failover as tests, not hopes → 195). Fast and deterministic beats exhaustive and flaky.
  • (Advanced) Use consumer-driven contract tests so services verify compatibility without spinning up the whole system (→ 36).
  • Run performance tests by goal: load (expected traffic — does it meet the SLOs?), stress (find the breaking point and failure mode), spike (sudden surge), soak (hours — leaks and degradation).
  • (Advanced) Run chaos experiments — kill instances, inject latency, block a dependency — as controlled tests that the resilience patterns (→ 151–154) actually engage.
197Testing strategy and test levels: unit, component, integration, end-to-end, regression, migration, recoveryCore198Contract testing between servicesAdvanced199Load, stress, spike and soak testingCore200Resilience and chaos testingAdvanced

12.4 Observability

Chapter outcomes and context

Topics covered: 201 Observability: logs, metrics and distributed tracing, with OpenTelemetry as the example (Core) · 202 Monitoring and alerting: four golden signals, RED and USE methods, alert fatigue, synthetic and dependency monitoring (Core)

Learning outcomes

  • Define observability as the ability to ask new questions of a running system, and use the three signals: logs (structured, leveled, correlation IDs, centrally aggregated), metrics (cheap aggregated time series), traces (one request's path across services with per-span timing; context propagation makes it work). OpenTelemetry is the vendor-neutral standard for producing all three.
  • Monitor with the standard frames: the four golden signals (latency, traffic, errors, saturation — from the Google SRE book), RED per service (rate, errors, duration), USE per resource (utilization, saturation, errors — Brendan Gregg's method, → 103).
  • Alert on symptoms users feel (SLO burn → 203–204), not on every cause; fight alert fatigue — every page must be actionable and urgent. Add synthetic monitoring (probes exercising user journeys from outside) and dependency monitoring (your third parties fail too).
201Observability: logs, metrics and distributed tracing (OpenTelemetry as the example)Core202Monitoring and alerting: four golden signals, RED and USE methods, alert fatigue, synthetic and dependency monitoringCore

12.5 Service Levels

Chapter outcomes and context

Topics covered: 203 SLIs, SLOs and SLAs (Core) · 204 Error budgets (Advanced)

Learning outcomes

  • Build the chain: SLI (a measured indicator — fraction of requests successful and under 300 ms) → SLO (the internal target — 99.9% over 30 days) → SLA (the external contract with penalties).
  • (Advanced) Operate error budgets (1 − SLO): the agreed amount of unreliability to spend on velocity; when the budget is exhausted, ship reliability instead of features — the core of Google's SRE practice.
203SLIs, SLOs and SLAsCore204Error budgetsAdvanced

12.6 Incidents and Readiness

Chapter outcomes and context

Topics covered: 205 Incident management and response: on-call, escalation, incident communication (Core) · 206 Root cause analysis and postmortems (Core) · 207 Production readiness and runbooks (Advanced)

Learning outcomes

  • Respond with structure: severity levels, an incident commander, on-call rotations that are humane and staffed, escalation paths, and incident communication — internal cadence and honest external status. Mitigate first, diagnose fully later.
  • Write blameless postmortems: timeline, contributing factors (rarely one root cause), action items with owners. Incidents are information about the system, not about people.
  • (Advanced) Gate launches on production readiness: SLOs defined, dashboards and alerts live, runbooks written (symptom → checks → actions), capacity planned (→ 102), rollback rehearsed, on-call staffed.
205Incident management and response: on-call, escalation, incident communicationCore206Root cause analysis and postmortemsCore207Production readiness and runbooksAdvanced

12.7 Cost as an Engineering Quantity

Chapter outcomes and context

Topics covered: 208 Cost optimization and FinOps (Core)

Learning outcomes

  • Treat cost as a non-functional requirement: rightsizing, autoscaling (→ 95), spot and preemptible capacity for interruptible work, storage tiering and retention (→ 81), egress awareness.
  • Practice FinOps: cost visibility per team and service (tagging), unit economics (cost per request, per user), the performance-versus-cost trade-off made explicit — method step 21 in every project.
208Cost optimization and FinOpsCore

Done when you can

  • Define SLIs and SLOs for a service and wire burn-rate alerts to them.
  • Run a load test, a chaos experiment, and a recovery drill — and interpret all three.
  • Write a runbook and a blameless postmortem someone else can use.
  • Defend an architecture in cost-per-request terms.
Open revision sheet and self-quiz

Projects after Part 12

Search the guide