Inside PostgreSQL High Availability: Quorum, Split-Brain, and Failover at Scale
summary
Architecture walkthrough of Patroni + etcd/Consul + HAProxy shows a deployed two-DC setup with two HAProxy nodes, sync + async replicas and a remote DR node left out of the Patroni cluster; design achieves zero data loss for a Telangana government deployment by using synchronous_standby_names, primary_conninfo and max_lag_on_failover tuning. Failover timelines converge around a ~35 seconds failover baseline and a watchdog timeout < TTL - margin - loop weight rule to prevent split‑brain. A DBTune-like automation tool reduces setup time from hours to minutes; full DC loss still requires manual VIP/HAProxy reroute.
AI-written summary · about
chapters (11)
- 0:00Introduction and speakers
- 3:03Why high availability matters
- 6:37Key HA tools overview
- 8:44Customer case study architecture
- 12:59Handling split-brain scenarios
- 16:27Failover timeline and watchdog
- 21:26Synchronous vs asynchronous replication
- 24:37RPO RTO and data loss
- 26:47Automated HA deployment tool
- 29:18Critical HA questions for DBAs
- 31:49Summary and resources
related talks
50mPatroni Deployment Patterns
50mThe Immortal Postgres Web
41mEnsuring High Availability in Self-Managed PostgreSQL with Patroni
57mReliability features in Postgres Pro
36mDesigning Layered High‑Availability Architectures for PostgreSQL on a Budget
47mPostgreSQL High Availability: The Considerations and the Candidates
33mCitus & Patroni: The Key to Scalable and Fault-Tolerant PostgreSQL
54mBreakout Session
