问题描述
我有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实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!