DATABASES · POSTGRESQL.CONF · LIVE MISCONFIGURATION PHYSICS
PostgreSQL 16 PGTune & Lock-Timeout Calculator
Hardware-aware PostgreSQL 16 postgresql.conf generator with OLTP/DW memory sizing, WAL tuning, statement_timeout, lock_timeout migration safety, and synchronous_standby_names.
PGTune Hardened (64GB RAM · OLTP)
shared_buffers=16GB, work_mem=66MB, statement_timeout=3000ms, lock_timeout=2000ms.
REAL-WORLD KNOBS (6)
64GB
Drives shared_buffers (25%) and effective_cache_size (75% OS + PG page cache).
Controls work_mem per sort/hash node and WAL checkpoint aggressiveness.
150
Keep low (100–200) behind PgBouncer so work_mem × connections never OOMs.
3000ms
0 disables timeouts — one unindexed table scan can saturate all CPUs.
2000ms
Prevents DDL migrations from queuing behind long queries and freezing the entire table.
Trades commit latency against RPO durability on primary crash.
EXPLORE THIS COMPONENT IN ARCHOS STUDIO
MATCHING PRODUCTION INCIDENT PLAYBOOKS