This repository is dedicated to supporting files for a Postgres cluster managed by Patroni. Each service within the cluster—etcd, keepalived, haproxy, and patroni—has its dedicated folder containing relevant files.
Each service folder is equipped with a README.md
, providing detailed instructions on setup and maintenance of the respective component.
To ensure a smooth cluster deployment, follow this order:
- etcd: Distributed Configuration Store (DCS) system, managing key-value data for cluster state, including master node identity.
- Patroni: Enhances Postgres, facilitating cluster operations via command line.
- Keepalived: Manages VIP (Virtual IP) for failover handling.
- Haproxy: Balances and proxies incoming connections, ensuring high availability.
- etcd nodes: 3
- Patroni, Keepalived, Haproxy nodes: 2
- Integrate Grafana for advanced monitoring.
- Implement
.env
file management for node IPs ($NODE01_IP
,$NODE02_IP
,$NODE03_IP
).
Note: For a successful setup, ensure to follow the instructions provided in each service's
README.md
.