
High-availability PostgreSQL clusters
Deploy a high-availability PostgreSQL cluster with Patroni for automatic failover, etcd for distributed consensus, PgBouncer for connection pooling, and HAProxy for read/write splitting. Includes pgBackRest for automated backups and cross-region read replicas. A production-ready, self-hosted alternative to AWS RDS.
Patroni provides automatic failover and leader election for your PostgreSQL cluster, ensuring zero-downtime operations.
PgBouncer manages database connections efficiently, reducing overhead and improving performance.
Optional HAProxy instances provide intelligent routing between read and write operations.
Integrated backup and restore using pgBackRest, providing fast and reliable backups.
Deploy read replicas in different geographical regions for faster reads and disaster recovery.
Customize your PostgreSQL and Patroni configuration without editing raw YAML files. Our visual config editor layers your customizations on top of battle-tested defaults.
Why Self-Host
Skip the markup. Deploy on your own servers and save 60-90% compared to AWS RDS.
| Setup | AWS RDS | Self-Hosted |
|---|---|---|
| Starter (3 nodes, 8GB RAM) | $400-600/mo | $60/mo |
| Growth (3 nodes, 32GB RAM) | $1,200-1,800/mo | $100/mo |
| Scale (3 nodes, 64GB RAM) | $3,000-5,000/mo | $180/mo |
Self-hosted prices based on Hetzner dedicated servers. Managed prices based on AWS RDS Multi-AZ with storage and IOPS.
FAQ
Common questions about this deployment recipe.
Learn More
In-depth guides to help you get the most out of your deployment.
Set up a production-ready PostgreSQL HA cluster with Patroni, etcd, PgBouncer, and HAProxy. Covers architecture, automatic failover, connection pooling, and backup strategies.
Compare AWS RDS and self-hosted PostgreSQL with real pricing at every scale. Covers total cost of ownership, performance differences, and when each option makes sense.
Learn how to set up PgBouncer for PostgreSQL connection pooling. Covers installation, pool modes, configuration tuning, and production best practices.
Learn how to monitor a PostgreSQL cluster in production. Covers key metrics, Prometheus and postgres_exporter setup, Grafana dashboards, and alerting for replication lag, connections, and disk usage.
Everything you need to know about deploying databases in production. Covers architecture decisions, high availability, backups, monitoring, security, and choosing between managed and self-hosted.
Pay once, get free updates for a year. After that, pay again to continue receiving updates.
50 spots remaining
One-time payment • Free updates for 1 year
After 1 year, pay again to continue receiving updates
Explore our other production-ready database clusters.

Deploy a production-ready ClickHouse cluster on your own servers with configurable shards and replicas. Includes ClickHouse Keeper for distributed coordination, CHProxy for load balancing and connection pooling, automated S3 backups, and hot/cold tiered storage. Self-host ClickHouse with the reliability of a managed service.

Deploy a Redis Sentinel cluster with automatic failover, HAProxy for transparent master routing, and cross-region replicas for geo-distributed caching. Configurable persistence with RDB and AOF. A self-hosted, production-ready alternative to AWS ElastiCache.