简体   繁体   English

是否可能有一个多节点卡夫卡集群,其中所有节点都指向相同的Zookeeper单个实例?

[英]is it possible to have a multi node kafka cluster, in which all nodes are pointing to the same single instance of zookeeper?

is it possible to have a multi node kafka cluster, in which all nodes are pointing to the same single instance of zookeeper? 是否可能有一个多节点卡夫卡集群,其中所有节点都指向相同的Zookeeper单个实例? I have a docker container, which has both, the kafka and zookeeper I want to set up a second kafka node (on a separate host and without docker), which would point to the same zookeeper. 我有一个docker容器,它同时具有kafka和zookeeper,我想设置第二个kafka节点(在单独的主机上,没有docker),该节点将指向同一zookeeper。 Are there any special configuration parameters, which I need to set in my server.properties file? 是否需要在server.properties文件中设置任何特殊的配置参数?

is it possible to have a multi node kafka cluster, in which all nodes are pointing to the same single instance of zookeeper? 是否可能有一个多节点卡夫卡集群,其中所有节点都指向相同的Zookeeper单个实例?

Of course you can do that, Kafka rely on Zookeeper to store status and config information, but no restriction on the size of Zookeeper cluster. 当然,您可以这样做,Kafka依靠Zookeeper来存储状态和配置信息,但对Zookeeper群集的大小没有限制。 Less ZK node provide less availability guarantee but no impact to whole cluster functionality. 较少的ZK节点提供较少的可用性保证,但不影响整个群集功能。

Just config new Kafka node with unique id and point to same zookeeper node. 只需配置具有唯一ID的新Kafka节点并指向同一zookeeper节点即可。
broker.id= unique-id broker.id = 唯一ID
zookeeper.connect=localhost:2181 zookeeper.connect =本地主机:2181

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

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