Barman and Patroni?

29 views
Skip to first unread message

David Tinker

unread,
Jan 25, 2023, 10:38:20 AM1/25/23
to Barman, Backup and Recovery Manager for PostgreSQL
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
Reply all
Reply to author
Forward
0 new messages