PGSQL Standby Cluster

    You can make a clone of an existing cluster using the Standby Cluster method, which allows for a smooth migration from a current database to a Pigsty cluster.

    When you want to promote the standby cluster to a standalone cluster, edit the Patroni configuration file of the new cluster to remove all configurations, and the Standby Leader in the standby cluster will be elevated to a standalone primary.

    Change Replication Upstream

    When a Failover primary change occurs in the source cluster, you need to adjust the replication source of the standby cluster. Execute and change the source address in to the new primary, and the application will take effect. Note that replica replication from the source cluster is feasible, and a Failover in the source cluster will not affect the replication of the standby cluster. However, the new cluster cannot create replication slots on the read-only replica, and there may be related error reports and a risk of replication interruption. It is recommended to adjust the upstream replication source of the standby cluster in time.