mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
It makes little sense to have ` for the Patroni service – if it goes down and we don't notice it (I doubt that patroni service uptime is well monitored in most cases), then we lose autofailover for Postgres, implying bigger risks of downtime. `Restart=on-failure` makes more sense in this case.
confd
confd directory contains haproxy and pgbouncer template files for the confd -- lightweight configuration management tool
You need to copy content of confd directory into /etcd/confd and run confd service:
$ confd -prefix=/service/$PATRONI_SCOPE -backend etcd -node $PATRONI_ETCD_URL -interval=10
It will periodically update haproxy.cfg and pgbouncer.ini with the actual list of Patroni nodes from etcd and "reload" haproxy and pgbouncer.ini when it is necessary.
startup-scripts
startup-scripts directory contains startup scripts for various OSes and management tools for Patroni.