patroni
patroni copied to clipboard
Some questions about setting up standby cluster
We want to use patroni to set up a standby cluster. We want to make clear some points.
- We have another etcd cluster in the region where standby cluster will be deployed. Can we use this etcd cluster for standby cluster and a different etcd cluster for primary cluster which is deployed on another region? Or we must use the same etcd cluster for both standby cluster and primary cluster?
- If primary switch over or fail over occurs in primary cluster, will the standby leader follow the new primary automatically?
- We do not want to use permanent replication slot. If primary switch over in primary cluster, do we need to set up the replication slot again for standby leader? Appreciate for your reply.
what have you tried so far?
We just check some doc for standby cluster. And not do POC yet. After read the doc, we have the above questions.
There is just one thing you need to understand, the standby cluster doesn't know anything where it replicates from. It could be just a standalone Postgres. Keeping that in mind I believe you can deduce answers to your questions.
@CyberDem0n Thanks. What about system identifier? I think It should be the same with the primary cluster so that streaming replication can be done?
I think It should be the same with the primary cluster so that streaming replication can be done?
Correct, the standby cluster could be considered as a cascading replicas.