Hi All
We have been using Barman for backups for years and are very happy with it (thanks!). Now we are investigating automated failover using Patroni and that also seems to work nicely. What I haven't been able to find is any documentation on how to make them work together.
Setup so far:
- Patroni using Consul for DCS with master and one replica (pg 15.1).
- Barman server (3.3.0) backing up the Patroni master discovered through Consul DNS (master.db56.service.consul) with WAL streaming. The IP address returned for that host changes promptly on failover.
I have tested doing a failover. WAL streaming breaks for a bit then continues from the new master. Barman check-backup and verify says all good.
Is this safe? And how do we go about doing a recover?
Thanks