Something is wrong right now. Where do I start?
Confirm what is really happening, find the cause, then fix the smallest thing that works. These playbooks follow that order.
Each playbook starts from a symptom, confirms it read-only, names the likely causes in the order I see them, and only then suggests a fix with its risk. The same playbooks drive the DBA agent.
Writes start failing, then the database refuses writes entirely. Break the disk down by owner before touching anything. The binlog is usually the filler, and the first assumption is usually wrong: a dead replica does not hold binlogs back, because MySQL purges by time. Check three numbers before naming a cause: the retention value, the write rate, and the oldest file in SHOW BINARY LOGS. Retention times write rate larger than the disk, retention set to 0, auto-purge off, and a burst that outran purge all look the same from the application.
The fix is the purge, not the replica. Check every replica position with SHOW REPLICA STATUS, then free space with PURGE BINARY LOGS TO '<oldest file still needed by any replica>'. The BEFORE form, PURGE BINARY LOGS BEFORE '2026-11-01 00:00:00', frees everything older than a time instead. Never rm old binlog files by hand. Set binlog_expire_logs_seconds to a value your write rate and disk can actually hold, and alert at 70 percent, not 98 percent. A replica that still needs a file you purged fails with error 1236 and must be rebuilt from a backup, which is why positions come first.
Related MySQL stories: GitHub's failover with Orchestrator and its 1,200-host upgrade, and the moves to Vitess at Slack and Shopify. All are on the Stories page. How to host MySQL on-prem, on EC2, in Kubernetes, or managed is on the Cloud page.
One command. It tells you how close the redo log is to stalling writes.
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.