Configure SRM for Failover and Failback
Learn how to configure Streams Replication Manager (SRM) for failover and failback.
To prepare for a failover or failback scenario you must set up SRM with bidirectional replication. Additionally, you must ensure that all mission critical topics and consumer groups are added to the allowlist on both the primary and backup clusters. Optionally, you can also choose to enable automatic group offset synchronization, which can simplify the steps you need to take when migrating consumer groups.
- Ensure that the SRM service is configured and all clusters are taking part in the replication process are defined and added to SRM's configuration. For more information, see Defining and adding clusters for replication.
- Ensure that the
srm-control
tool is configured. For more information, see Configuring srm-control. - If you plan on enabling automatic group offset synchronization, ensure that you review Configuring automatic group offset synchronization. Although the basic steps are provided here, the feature has some limitations that you must be aware of.
- The following steps and examples are for a replication scenario with two clusters. These
are referred to as
primary
andsecondary
.
SRM is set up with bidirectional replication and all mission critical topics and consumer
groups are added to the allowlist on both the primary
and
secondary
clusters.