Managing backup cluster geo-replication
To enable geo-replication, the backup clusters must be able to reach each other via domain names on TCP port 44445.
To enable geo-replication between two backup clusters, execute the following commands (refer to examples in the sections below):
- On the cluster that will be configured as secondary, run
vinfra service backup geo-replication show
to learn its address and UID. - On the cluster that will be configured as primary, run
vinfra service backup geo-replication master setup
, using the address and UID of the secondary cluster. - On the primary cluster, run
vinfra service backup geo-replication master download-configs
to generate the configuration file of the primary cluster. - Move the configuration file of the primary cluster to the secondary cluster using the standard Linux command-line tool, for example,
scp
. - On the secondary cluster, run
vinfra service backup geo-replication slave setup
to upload the configuration file of the primary cluster. - On the primary cluster, run
vinfra service backup geo-replication master establish
to establish a connection between the primary and secondary clusters. - On one of the clusters, run
vinfra service backup geo-replication show
to check that geo-replication has been successfully enabled.