What could possibly go wrong if you try to load 1 Petabyte into PostgreSQL
summary
A team rents eight commodity servers and attempts to load 1 petabyte into Shardman using a Go YCSB implementation; data generation requires precomputing random payloads, batching and multi-threading to reach ~0.5–1 GB/s instead of naive 1 GB/s, and collision/entropy bugs force key redesign. Hardware issues include bad DIMMs, flaky drives and a filesystem stripe bug that cripples I/O until remounted; VACUUM tuning and WAL placement are essential. Final cluster achieves ~1,000 TPS per server for simple YCSB workloads — it works but is brittle and costlier than expected.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 3:46About Shardman and its features
- 9:55Project goals and initial challenges
- 13:48Generating test data for 1PB
- 18:59Optimizing data generation speed
- 21:33Hardware setup and installation
- 24:24First hardware issues and fixes
- 27:39Unexpected performance problems
- 31:28Debugging CPU and filesystem issues
- 35:10Vacuum and performance testing
- 37:43Benchmark results and scalability
- 39:34Lessons learned and recommendations
- 41:47Closing and Q&A
related talks
48mBuilding Petabyte-Scale PostgreSQL Deployments
36mPostgres at any Scale
31mBiggish Data With Rails and Postgresql
43mPostgreSQL in the cloud: Theory and Practice
42mPostgreSQL Distributed: Architectures & Best practices
48mHow to Tame A Mastodon: Lessons for PostgreSQL at Scale
25mData-intensive PostgreSQL: Three ways to scale
46mBig databases, many servers, data center or cloud - it's all here!
