Bidirectional replication example of two active clusters
Review the bidirectional replication example to learn how you can configure and start replication with Streams Replication Manager in a deployment with two active clusters configured with bidirectional replication.
In a typical scenario, you may have two active Kafka clusters within the same region but in separate availability zones. With bidirectional replication, clients can connect to either cluster in case one is temporarily unavailable.
This example demonstrates the steps required to configure the deployment shown below. Additionally, it also provides example commands to start replication between clusters.
- The following list of steps assume that both clusters are unsecured.
- The following list of steps assume that the Streams Replication Manager Service role is running on all Kafka broker hosts and is targeting its co-located cluster (the cluster it is running in).
- Steps 1 through 6 must be carried out on all clusters for all SRM services. The steps highlight when the configuration differs from cluster to cluster or if it is identical on all clusters.
- The following list of steps assume that the DefaultReplicationPolicy is in use.