Building Highly Scalable PostgreSQL Platforms: Internals, Tuning, HA Automation

May 27-29, 2026 • Computer History Museum, CaliforniaDate, time, and room will be announced soon.
Scaling PostgreSQL reliably is less about a single “magic setting” and more about designing the whole platform including connections, configuration, replication, failover automation, and application routing, so it behaves predictably under real load and real failures. In this 3-hour, lab-driven workshop, we’ll start with a clear view of PostgreSQL architecture (including how MVCC works in practice) and then move into the operational building blocks of a scalable platform including connection management, the most impactful parameters to tune, replication setup, and automated failover with Patroni. We’ll finish by tying the database layer to the application layer using connection poolers and load balancers, showing practical patterns for read/write routing and automatic failover behavior. Each section includes guided labs and verification steps so you leave with repeatable procedures and a production-ready mental model.
What we’ll cover (discussion + labs):
- PostgreSQL architecture including processes, memory, IO path, and MVCC implementation.
- Connection overhead, limits, and why “too many connections” breaks platforms.
- High-impact tuning through the parameters that usually matter most (memory, WAL/checkpoints, autovacuum, planner basics)
- Replication foundations including setting up streaming replication and validating replica health/lag
- Designing for failure: what actually happens during primary loss and why orchestration matters
- Patroni deep dive including cluster bootstrap, leader election, failover/switchover, and operational guardrails.
- Connection poolers (e.g., PgBouncer) patterns: transaction vs session pooling and practical tradeoffs
- Load balancers and routing using primary/replica endpoints, health checks, and application failover behavior
- Observability checkpoints such as - what to monitor to trust performance and failover (key signals and quick tests)
Speaker

Avinash Vallarapu is the CEO and Chief of Products at HexaCluster, where he leads the development of PostgreSQL extensions and an end-to-end database migration tool called HexaRocket. Before HexaCluster, Avi founded …

