Cloud SQL disaster recovery across regions: one approval, a fence, and what eight failovers taught us
7.9 relevance
Score Breakdown
technical depth 9
novelty 7
actionability 8
community 6
strategic 7
personal 9
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Summary
Google Cloud SQL's advanced disaster recovery promotes a cross-region replica in 61–84 seconds, but the hard part is orchestrating the decision, fencing the old primary, and avoiding split-brain. After eight failovers and sixteen switchovers on a 303 GB PostgreSQL instance, the team built a group workflow that requires human approval, stops the old primary, and copies three settings to the new one—all running in the surviving region. Terraform is explicitly unsupported for replica failover, so the orchestration uses alerts, Pub/Sub, Eventarc, and a custom worker with check, switchover, and rebuild modes.