在Active-Passive Kafka群集体系结构中创建Kafka主题

发布于 2025-02-11 12:53:50 字数 221 浏览 2 评论 0原文

我试图弄清楚在Active-Passive Kafka群集体系结构中创建主题的正确方法是什么。

假设我们在两个分离的可用性区域中有两个Kafka群集(主动 - 假)。 我知道,当数据从活动群集复制到被动群集时,主题镜像会发生。

问题是。当我创建一个主题时,我应该在两个群集上创建它吗? 如果不是,那么镜像制造商应该知道有效群集上是否有一个新主题并在被动群集上创建其副本。

会感谢任何澄清

I'm trying to figure out what is the proper way to create a topic in Active-Passive Kafka cluster architecture.

Let's say we have two Kafka clusters (Active-Passive) in two separated availability zone.
I understand that the topic mirroring happens when data is replicated from active to passive clusters.

The question is. When I create a topic should I create it on both clusters separately?
If not, then the Mirroring maker should know to detect if there is a new topic on the Active cluster and create its replica on the passive cluster.

Will appreciate any clarification

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂ガ小子 2025-02-18 12:53:50

KMM2(至少)确实监视源群集中的Kafka主题。

详细介绍一下KM多久使用管理员使用找出 复制的主题是什么,以及它如何参与 9 cing他们的配置

KMM代码非常简单,因此如果需要的话,请进行分叉并进行更改(但是很有可能您可以通过设置策略/参数来获得所需的东西)。

KMM2 (at least) does monitoring of Kafka topics in the source cluster.

In detail take a look at how often KM does use the admin to find out what are the topics to replicate and how it is involved in syncing their configuration.

KMM code is pretty straightforward, so forking and making changes if needed should not be too hard (but it is very much possible you might get what you want by setting up policies/params).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文