Skip to main content
CRUCIBLE
Legacy Reference Archive: This 44-chapter book reference has been distilled into Academy A01 (8 Executable Modules) with Tier-Adaptive Productive Failure, Kore/Puck voice, and live Firecracker labs.
Open Academy A01 →
COURSE 0 · SERVER BUILDING & LIFECYCLE MASTERY

Zero-to-Production Linux, Containers, Networking & Recovery

PROGRESS: 0 / 72 (0%)0/44L · 0Q · 0VM
RBK 03 · 4 OPERATIONAL RUNBOOKS · 200 WORDS (3 MIN)

Recovery and migration runbook

Prerequisites: source/destination inventory, current authoritative dataset, approved backup/key access, recovery objectives and external-effects policy. 1. State the failure or migration boundary and decide when writes stop.

FULL WAR-ROOM →
INTERACTIVE OBSERVABILITY · CLICK ANY STAGE TO TEST

Golden Signals Loop: /metrics -> Prometheus -> Alert Rules -> Runbook

How production teams catch silent degradation before customers tweet about it.

scrapesfirespagesApp /metricsLatency · Errors · PoolsPrometheus TSDB15s Scrape IntervalAlertmanagerDedup · Route · SilenceVerified RecoveryObserve -> Fix -> Prove
SELECTED LAYER · APP /METRICS
Exposes real-time counters and histograms (request p99, 5xx rate, PgBouncer cl_waiting, open FDs).
Common failure: High-cardinality labels (like user_id) exploding Prometheus memory usage.
$ curl -s http://127.0.0.1:8000/health

Prerequisites: source/destination inventory, current authoritative dataset, approved backup/key access, recovery objectives and external-effects policy.

  1. State the failure or migration boundary and decide when writes stop. Identify which system is authoritative at every stage.
  2. Provision an isolated owned destination with adequate capacity and required runtime/extensions/roles.
  3. Retrieve the reviewed backup and independent keys. Verify integrity; stop on decrypt/hash/provenance failure.
  4. Restore using the target database/storage's supported method. Keep outbound effects and schedules disabled during validation.
  5. Verify schema, constraints, representative records, permissions, expected last committed fixture and a new synthetic workflow. Confirm the app actually uses the new destination.
  6. Compare observed recovered timestamp and full recovery duration to RPO/RTO definitions. Record any gap and uncertain side effects.
  7. For cutover, fence source writes, transfer final changes consistently, validate destination, shift traffic, then verify actual client writes at destination.
  8. Retain source read-only for a defined rollback window. Reconcile external operations before replay. Retire source through the exact inventory after acceptance.

If both sides have accepted divergent writes, stop automatic rollback and use the predesigned reconciliation procedure. Logical dumps do not establish PostgreSQL WAL/PITR coverage. A second local directory does not establish offsite recovery.

ACTIVE-RECALL MASTERY CHECKPOINT · RBK 03

Lock in what you just learned (3 quick questions)

PASS 2/3 FOR +30 XP
Q1.During a database or server migration, why run a rehearsal on a staging copy and measure real transfer + cutover time?
Q2.Why freeze writes (or switch cleanly to read-only/dual-write verification) right before final database cutover?
Q3.How long should you retain the decommissioned source snapshot after a successful cutover?
Answered 0 / 3