KafkaMirrorMaker2 - Multiple mirrors #7795
Unanswered
lenin-joseph1
asked this question in
Q&A
Replies: 1 comment
-
@lenin-joseph1, did you managed to archive the goal ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have an use case where we want to replicate "msk.*" topics with cluster alias as a prefix, and replicate "_schemas" without any prefix using the same MirrorMaker instance, so we have used two mirrors as below, could you advice if this is the right approach?
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaMirrorMaker2
metadata:
name: mm2-cluster
namespace: kafka-ns
spec:
version: 3.0.0
replicas: 2
connectCluster: target-kafka
clusters:
mirrors:
targetCluster: target-kafka
sourceConnector:
config:
replication.factor: 3
offset-syncs.topic.replication.factor: 3
tasks.max: 6
heartbeatConnector:
config:
heartbeats.topic.replication.factor: 3
checkpointConnector:
config:
checkpoints.topic.replication.factor: 3
sync.group.offsets.enabled: true
topicsPattern: "msk."
groupsPattern: "."
targetCluster: target-kafka
sourceConnector:
config:
replication.factor: 3
offset-syncs.topic.replication.factor: 3
tasks.max: 6
replication.policy.separator: ""
replication.policy.class: io.strimzi.kafka.connect.mirror.IdentityReplicationPolicy
heartbeatConnector:
config:
heartbeats.topic.replication.factor: 3
checkpointConnector:
config:
checkpoints.topic.replication.factor: 3
sync.group.offsets.enabled: true
topicsPattern: "_schemas"
groupsPattern: ".*"
Beta Was this translation helpful? Give feedback.
All reactions