简体   繁体   English

如何让多个 Mirror Maker 节点分担复制负载?

[英]How to get multiple Mirror Maker nodes to divide the replication load?

I am trying to enable replication between two different Kafka clusters (cluster A and cluster B).我正在尝试在两个不同的 Kafka 集群(集群 A 和集群 B)之间启用复制。 I do not require active/active replication.我不需要主动/主动复制。 Going from A → B is enough for me.从 A → B 对我来说就足够了。

To achieve that goal I plan to set up a Mirror Maker 2 cluster such as data flows as follows:为了实现这个目标,我计划建立一个 Mirror Maker 2 集群,例如数据流如下:

cluster A → Mirror Maker 2 cluster → cluster B集群 A → Mirror Maker 2 集群 → 集群 B

Cluster A has close to 3k partitions and it is part of a business-critical application so I have to guarantee speedy replication between A and B.集群 A 有接近 3k 的分区,它是关键业务应用程序的一部分,所以我必须保证 A 和 B 之间的快速复制。

I started experimenting with setting up a dedicated mirror maker cluster (ie using connect-mirror-maker.sh ).我开始尝试设置一个专用的镜像制造商集群(即使用connect-mirror-maker.sh )。

KIP-382 mentions that “In this mode, MirrorMaker does not require an existing Connect cluster. KIP-382提到“在这种模式下,MirrorMaker 不需要现有的 Connect 集群。 Instead, a high-level driver manages a collection of Connect workers.”.相反,高级驱动程序管理一组 Connect 工作人员。”。 However, I am struggling with how to make multiple nodes communicate amongst themselves to divide up the load.但是,我正在努力解决如何让多个节点相互通信以分配负载。

I have tried multiple configs such as listeners , rest.advertised.host.name , rest.advertised.port , and others.我尝试了多种配置,例如listenersrest.advertised.host.namerest.advertised.port等。

None of them seem to enable communication between MM2 workers.它们似乎都无法实现 MM2 工作人员之间的通信。 Can someone point me to an example configuration on how to achieve that?有人可以向我指出如何实现这一目标的示例配置吗?

After digging a little into this I've found out that as of now (June/2022) there's no support for distributed mode in for the dedicated Mirror Maker cluster.在深入研究之后,我发现截至目前(2022 年 6 月),专用 Mirror Maker 集群不支持分布式模式。 If one wants to run Mirror Maker with multiple agents/workers, a connect cluster is needed.如果想要使用多个代理/工作人员运行 Mirror Maker,则需要一个连接集群。 There's a KIP under consideration to change this behaviour. 正在考虑使用 KIP来改变这种行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM