Asynchronous Replication Beta
Yugabyte Platform allows you to use its UI or API to manage asynchronous replication between independent YugabyteDB clusters. You can perform deployment via unidirectional (master-follower) or bidirectional (multi-master) asynchronous replication between two data centers.
Within the concept of replication, universes are divided into the following categories:
-
A source universe contains the original data that is subject to replication.
Note that in the current release, replicating a source universe that has already been populated with data can be done only by contacting Yugabyte Support.
-
A target universe is the recipient of the replicated data. One source universe can replicate to one or more target universes.
For additional information on asynchronous replication in YugabyteDB, see the following:
- Asynchronous Replication: Overview and Architecture
- Asynchronous Replication Between Universes in YugabyteDB
Using the Yugabyte Platform UI
You can use the Yugabyte Platform UI to set up and configure asynchronous replication for universes whose tables do not contain data. In addition, you can perform monitoring by accessing the information about the replication lag and enabling alerts on excessive lag.
How to set up replication
You can set up asynchronous replication as follows:
-
Open the Yugabyte Platform UI and navigate to Universes.
-
Select the universe you want to replicate and navigate to Replication.
-
Click Configure Replication to open the dialog shown in the following illustration:
-
Provide the name for your replication.
-
Select the target universe.
-
Click Next: Select Tables.
-
From a list of common tables between source and target universes, select the tables you want to include in the replication and then click Create Replication, as per the following illustration:
How to configure replication
You can configure an existing replication as follows:
-
Open the Yugabyte Platform UI and navigate to Universes.
-
Select the universe whose existing replication you want to modify and then navigate to Replication, as per the following illustration:
-
Click Configure Replication and perform steps 4 through 7 from How to set up replication.
How to view, manage, and monitor replication
To view and manage an existing replication, as well as configure monitoring, click the replication name to open the details page shown the following illustration:
This page allows you to do the following:
-
View the replication details.
-
View and modify the list of tables included in the replication, as follows:
-
Select Tables, as per the following illustration:
-
Click Modify Tables.
-
Use the Add tables to the replication dialog to change the table selection, as per the following illustration:
The following illustration shows the Add tables to the replication dialog after modifications:
-
-
Configure the replication, as follows:
-
Click Actions > Edit replication configuration.
-
Make changes using the Edit cluster replication dialog shown in the following illustration:
-
-
Set up monitoring by configuring alerts, as follows:
-
Click Configure Alert.
-
Use the Configure Replication Alert dialog to enable or disable alert issued when the replication lag exceeds the specified threshold, as per the following illustration:
-
-
Pause the replication process (stop the traffic) by clicking Pause Replication. This is useful when performing maintenance. Paused replications can be resumed from the last checkpoint.
-
Delete the universe replication by clicking Actions > Delete replication.
Setting up bidirectional replication
You can set up bidirectional replication using either the Yugabyte Platform UI or API by creating two separate replication configurations. Under this scenario, a source universe of the first replication becomes the target universe of the second replication, and vice versa.