Running Consul at Massive Scale
summary
Consul is a service-discovery and KV orchestration system that runs an agent per host, uses a SWIM-based gossip mesh for failure detection and a Raft server quorum for consistent catalog writes, and scales in production to 10k–100k nodes with worst-case gossip overhead ≈300 kb/s per node and convergence under ~2 seconds. It adds lifeguard enhancements to reduce false positives, provides federated data centers and prepared queries for geo-failover, supports TLS-secured network areas, and is deployed and proven at large scale.
AI-written summary · about
chapters (22)
- 0:00Intro
- 0:23Provision, secure, connect, and run any infrastructure
- 1:33Service Discovery, Configuration, Orchestration
- 3:18Monitoring at Scale
- 3:56High Availability
- 5:16Service Discovery + DNS
- 7:10Monitoring + Service Discovery
- 9:13Running Consul
- 12:47Pull vs. Push - Edge Triggered
- 13:12Gossip Protocol
- 13:57Failure Detection
- 18:06Distributed Failure Detector
- 19:54Convergence
- 21:06Benefits
- 22:57Consul Clusters at Scale
- 25:08Basic Federation - WAN
- 26:59Advanced Federation - Network Areas
- 27:59Hub and Spoke
- 28:34General Graph
- 29:44Operational Features
- 35:23Query DNS for the Database
- 36:06Single Line Config for Geo Failover
