DevOps - Cluster DB With POSTGRESQL PATRONI HAPROXY PGBOUNCER
DevOps - Cluster DB With POSTGRESQL PATRONI HAPROXY PGBOUNCER
DevOps - Cluster DB With POSTGRESQL PATRONI HAPROXY PGBOUNCER
https://snapshooter.com/learn/postgresql/postgresql-cluster-patroni
https://www.techsupportpk.com/2022/01/set-up-highly-available-postgresql13-cluster-ubuntu.html?m=1
https://severalnines.com/blog/how-achieve-postgresql-high-availability-pgbouncer/
etcd.txt
Unremark
ETCD_LISTEN_PEER_URLS=http://10.42.0.19:2380
ETCD_LISTEN_CLIENT_URLS=http://localhost:2379, http://10.42.0.19.13:2379
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://10.42.0.19:2380
ETCD_INITIAL_CLUSTER=default=http://10.42.0.19:2380
ETCD_ADVERTISE_CLIENT_URLS=http://10.42.0.19:2379
ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster
ETCD_INITIAL_CLUSTER_STATE=new
$ sudo systemctl restart etcd
$ sudo systemctl status etcd
CREATE A SYSTEMD SSERVICE FOR PATRONI ( NODE01, NODE02)
$ sudo nano /etc/patroni.yml
patroni.txt
patroni.service.txt
haproxy.txt