0

We have a cluster of 3 nodes in DC and a cluster of 3 nodes in DR. I need to sync DR leader from DC Leader keeping both cluster separated from each other. Though I got a solution of adding parameter standby_cluster from link: DC-DR Sync issue in Patroni PostgreSQL setup. But it is not working. I am guessing there must be something more to configure in patroni.yml file and I was hoping if anyone can help me in clarifying what are the necessary configuration required to add in patroni.yml for DC-DR Sync in Patroni Postgresql Setup.

Like,

  1. what are the parameters to be considered in standby_cluster apart from host and port.

  2. Do I need to change or add anything in dcs, postgresql.conf or pg_hba.conf section under patroni.yml file or anything in Consul?

  3. Do I need to directly edit in patroni.yml or need to edit in "patronictl edit-config"?

  4. Or is there any other method for DC to DR Syncing.

Setup in our Environment:

  1. Patroni: for Replication, handling database clustering
  2. Consul: for Network Discovery and Health Check
  3. Pgbackrest: for Backup & Restore

I tried adding parameter standby_cluster under dcs with mentioning Host, Port and create_replica_methods (- basebackup). Then I added sample data in DC Leader to verify but I couldn't find anything in DR instance.

0 Answers0