Replication & Scaling
Replication & Scaling
Running it across machines, safely, over time.
Running it across machines, safely, over time.
Sections
- 9.1ReplicationStreaming, physical, logical, and replication slots
- 9.21High Availability with PatroniThe leader key in etcd, how a replica promotes itself, how the old primary rejoins, and how clients follow
- 9.31Replication Lab: Lag, Stale Reads and Sync CommitsWhat a replica sees right after a write, and what synchronous replication costs when replicas are 5 ms away
- 9.42The Failover DrillSwitchover, clean stop, kill -9, and a kill while replicas lag: downtime and lost writes, measured from the application's side
- 9.5Scaling & PoolingRead replicas, PgBouncer, sharding, high availability
- 9.61Connection Pooling with PgBouncerWhy a pooler, how transaction pooling works, and the five things it breaks, measured with 30 concurrent clients
- 9.7Self-testSelf-test