Series / Databases

Database Reliability Playbook

Operational workflows for diagnosing, recovering, and preventing database incidents across slow queries, backups, replication, autovacuum, migrations, and capacity pressure.

85 posts Databases

Who This Is For

DBAs, SREs, and backend engineers who own databases in production and need structured triage workflows — not tutorials, but field-tested runbooks for when something is already on fire.

What You Will Be Able to Do

  • Run a structured triage when a query suddenly slows down or a replica falls behind
  • Validate backup integrity before you need it, not during an incident
  • Diagnose autovacuum and bloat before they cause table scans
  • Execute schema migrations without downtime on live traffic

Prerequisites

Basic familiarity with PostgreSQL or MySQL. You should know what a query plan is, even if you don't read them fluently yet.

1 Diagnostics

How to find what's slow and why the optimizer chose a bad plan — before you start changing things.

2 Incident Runbooks

Structured triage for when something is already on fire — connection storms, autovacuum failures, replication lag, and CPU spikes.

3 Prevention & Capacity

Proactive work that stops incidents before they happen — backups you can actually restore, connection pools that don't kill the primary, and migrations with a rollback path.

Additional Posts

Related posts matched to this series by topic, tags, and keywords.

13 min read
L3 Reference Guide

MongoDB Query Performance Workflow: Deconstructing explain() Plans, Plan Cache Tournaments, and WiredTiger Cache Contention

A comprehensive diagnostic workflow for production MongoDB query degradation. This guide analyzes query planner mechanics, plan cache tournament eviction, WiredTiger ticket starvation, in-memory sort aborts, and index selectivity forensics to identify and resolve query stalls within minutes.

12 min read
L3 Reference Guide

MongoDB Version Upgrade Risk Review: FCV Invariants, Catalog Schema Transitions, and Rolling Replica Set Migration

MongoDB version upgrades carry severe operational risk because the Feature Compatibility Version (FCV) mechanism decouples binary execution from internal on-disk data format transformations. Once FCV advances, downgrade paths permanently close. This post details the exact catalog schema changes between major versions, rolling upgrade sequencing, driver handshake wire protocols, and forensic verification gates required before committing point-of-no-return changes.