When a standby is promoted, it starts an authoritative history. The former primary may contain transactions that never replicated, and it must not be reconnected as a writer merely because its process starts. Preserve it for evidence, fence it, reconcile any unique accepted work, then rebuild or rewind it into a follower of the promoted system using a procedure supported by the database and its timeline requirements. Treat the return traffic move as a fresh cutover with its own data and capacity gates.
Failback: rebuild the former primary before returning write authority
Operational decision
A booking service now writes in the recovery region. The former primary comes back with three local bookings beyond the last replicated position. Keep its network path to clients blocked, take a forensic copy, and compare those bookings with payment and notification records. Reconcile each customer outcome in the current writer before the old node is resynchronized. If a database rewind tool is used, first verify that the two clusters share the expected history and required logs; if they do not, provision a fresh replica from a known-good base backup instead. Follow the new writer until lag is within the planned bound, test application reads and a controlled write in the current region, and confirm the returning region rejects writes before any return cutover. A return can wait until ordinary business hours if the recovery region has enough capacity and protection. Do not perform it solely to restore geography while the new region is still serving correctly. After the eventual return, reverse replication again and verify that a standby exists; otherwise the service has silently lost its next recovery path.
Booking failback gates
Former primary: fenced and copied for investigation
Unique writes: reconciled with customer outcomes
Resync: rewind validated or fresh replica created
Catch-up: timeline and lag checked
Return: new epoch, application probe, traffic drain
Protection: standby replication restored afterwardCost and verification
Resynchronization can consume database I/O, network bandwidth, retained logs, and hours of operator time; a full rebuild may cost more but avoids an unsafe rewind across incompatible histories. Track unreconciled unique writes, replica lag, customer-path success, old-writer rejection, and days spent without a healthy standby. The recovery region's temporary capacity cost is often smaller than the cost of a rushed second outage.
Common Mistakes
- Do not restart the former primary as a writer on process recovery.
- Do not discard its unique writes before domain reconciliation.
- Do not declare failback finished without rebuilding a standby.
Connected lessons
- DevOps: delivery, infrastructure, and reliable operations
- Point-in-time recovery: accept a restored timeline only after business reconciliation
- Failover fencing: prevent two writable database leaders
- Multi-region failover: define write ownership before moving traffic
- Project: recover a database change stream and restore boundary
