Postgres at Scale: Lessons from Running Multi-Terabyte Clusters
summary
Real operational rules and numbers: autovacuum defaults (three workers, coarse scale_factor) cause huge bloat on big tables and require lowering thresholds and raising workers; one customer sees 8 TB table with 40% bloat (≈3.2 TB dead tuples) that blocks queries; set a freeze age alarm at ~500 million and use pg_stat_progress_vacuum; partition into 10–100 GB chunks (avoid tens of thousands of partitions); use reindex concurrent, WAL compression, right‑sized IOPS, replicas for analytics, and automated partitioning tools.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:09Terabyte scale challenges
- 3:15Vacuum at scale
- 11:41Bloat mitigation strategies
- 15:58Fill factor tuning
- 18:03Partitioning at scale
- 25:24Query tuning pitfalls
- 31:49OLTP vs analytics separation
- 35:19Storage and IOPS
- 38:47Replication challenges
- 40:11Admin tasks at scale
- 43:58Common pitfalls summary
- 44:39Key takeaways
related talks
25mUnderstanding & Managing Postgres Table Bloat
48mThe Good, The Bad, and The Bloated: An Autovacuum Story
27mMaintaining Large Tables in PostgreSQL
30mManaging Postgres at scale: Challenges, Tools & Techniques
48mHow to Tame A Mastodon: Lessons for PostgreSQL at Scale
25mScaling PostgreSQL Beyond Query Optimization
36mPostgres at any Scale
32mOptimizing autovacuum: PostgreSQL’s vacuum cleaner
