卡夫卡的Zoopekeeper实例

编程入门 行业动态 更新时间:2024-10-21 19:28:00
本文介绍了卡夫卡的Zoopekeeper实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有3个安装Kafka的节点.所有这三个节点都有自己的Zookeeper实例.是否需要3个Zookeeper实例或足够1个Zookeeper实例?我们是否应具有多个Zookeeper实例以实现容错&在这种情况下,其中一个实例将充当主要实例,而其他实例将成为副本吗?

I have 3 nodes where Kafka is installed. All these 3 nodes have their own zookeeper instances. Are 3 zookeeper instances required or is 1 zookeeper instance suffice? Should we have multiple zookeeper instances for fault tolerance & in such a scenario would one of the instances act as primary and would others be replica?

推荐答案

我不确定您的意思是所有这三个节点都有他们自己的 zookeeper实例"基本上,您应该只有一个一个,三个或五个Zookeeper实例的群集,所有Kafka代理都应使用相同的群集.您不需要一个以上的Zookeeper实例,但是由于可用性,我强烈建议使用三个或五个实例.我们使用三个Zookeeper实例来运行我们的Kafka集群.

I'm not sure what you mean by "All these 3 nodes have their own zookeeper instances" Basically you should have a single cluster of one, three or five Zookeeper instances and all Kafka brokers should use the same cluster. You don't need more than one Zookeeper instance but I'd highly recommend to use three or five instances because of availability. We use three instances of Zookeeper to run our Kafka cluster.

更多推荐

卡夫卡的Zoopekeeper实例

本文发布于:2023-11-26 00:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631948.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   卡夫卡   Zoopekeeper

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!