How to Deploy a TLS-Secured PostgreSQL Cluster with Patroni and HAProxy on Ubuntu 24.04
A technical guide published on DEV Community details how to set up a highly available, three-node PostgreSQL cluster on Ubuntu 24.04 servers. The architecture uses Patroni for replication and automatic failover, etcd as the distributed coordination store, and HAProxy to load-balance incoming client connections. An odd number of nodes is required to maintain quorum, ensuring the cluster remains operational even if one node fails. Each node must meet minimum hardware requirements of 2 vCPUs and 4GB RAM, with PostgreSQL pre-installed and a dedicated subdomain for TLS certificate provisioning via Certbot. The guide covers package installation, firewall configuration, etcd setup, and SSL certificate management scripts to keep services secured after automatic renewals.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in