GEO Failover Made Easy with Consul
summary
Consul runs an agent on every node with a small set of servers (3/5/7) and combines a SWIM gossip failure detector with network coordinates (Vivaldi) and WAN clustering so services can fail over across data centers simply by switching foo.service.consul to foo.query.consul. Prepared queries implement rules like nearest_n3 using median RTTs to choose the closest of many data centers. At 10,000 nodes gossip converges in ~2.5s with ~300 kbps per node; Lifeguard reduces false positives while keeping detection fast.
AI-written summary · about
chapters (30)
- 0:00Intro
- 1:55Consul at a Glance
- 3:46Monitoring at Scale
- 4:30High Availability
- 4:55How Does Consul Work?
- 6:36Consul Architecture
- 7:43A Unique Mix of Capabilities
- 8:30Service Catalog + DNS
- 11:40Health Checks + Key/Value Store
- 12:19Types of Health Checks
- 13:14Traditional Health Checking (central pull)
- 13:50Consul Health Checking (edge push)
- 14:51Distributed Failure Detector
- 16:06Gossip Protocol
- 18:14Failure Detection
- 20:41Convergence Simulation
- 23:40Lifeguard Before and After
- 25:22Round Trip Time Measurements
- 25:54Network Tomography
- 27:21Vivaldi
- 27:55Consul's Implementation
- 30:20Multiple Datacenters
- 31:48Prepared Query
- 33:19Database Template
- 34:04Catch All Template
- 34:39Query DNS for the Database
- 36:12Local Database Fails
- 38:28Just Change One Config
- 39:14Summary
- 40:24Thank You
