get working barman with vip, haproxy, patroni and etcd

447 views
Skip to first unread message

Thomas Poty

unread,
Oct 11, 2018, 5:29:36 AM10/11/18
to Barman, Backup and Recovery Manager for PostgreSQL
Hello,

Here is the situation:
    - We have 1 master and 2 slave asynchronous using replicatino slot
    - For HA, we have just installed atroni, etcd, HAProxy and a VIP

My need is get working  barman with the new HA cluster (VIP, HAProxy, patroni and etcd).

Ideally, Barman has to keep current configuration :
    - using rynch/ssh
    - using replication slot
    - keep one backup dir for the whole Postgresql cluster (master and slaves)

Currently barman works fine by hitting directly the postgresql server.

The goal is go through VIP and HAProxy to hit the master.

Anybody has some experienced with that ?
Are there best practices ?

I have tried to :
    - add a listenning port on the HaProxy servers
    - and replaced the IP of the Postgresql server by the vip in the configuration of barman
but it doesn't work => I get this : "ssh_exchange_identification: Connection closed by remote host"

Could you help/advice me please ?
Reply all
Reply to author
Forward
0 new messages