DB Replication

Operate PostgreSQL and MySQL replicas, logical replication and failover, including a replication slot filling the primary's disk: set a lag budget per read path and send read-your-writes reads to the primary; alert on lag in bytes and seconds and on slot-retained WAL well before the disk fills; write a promotion runbook that fences the old primary first; test failover under load. Use when a replica lags, pg_wal or binlogs are filling the disk, someone asks "which reads can go to the replica", "Seconds_Behind_Source says 0 but the data is stale", or how to fail over Postgres or MySQL without split brain. Not for backup design (backup-recovery-design), a schema change (db-migration), proving backups restore (restore-canary), a major version upgrade (db-major-upgrade), the switchover window itself (cutover), a failover happening now (incident-response) or an AZ-kill drill (game-day).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 45d5bab4e4

Frequently asked questions

npx get-skill add greenblacked/db-replication