简体   繁体   English

计算Kafka主题分区

[英]Calculate Kafka topic partitions

I have an n node Kafka cluster with just 2 topics I have replicated the topics across all n nodes I 'think' I have just a single consumer in the form of a mirrormaker consuming all topics although I intend to increase that from 1 to n mirror makers How many partitions should my topics use ? 我有一个仅包含2个主题的n节点Kafka集群,我已经在所有n个节点上复制了这些主题,我“认为”我只有一个使用镜像制造者形式的消费者来消费所有主题,尽管我打算将其从1个增加到n个镜像maker我的主题应该使用几个分区? 1 then later n? 1再后来n?

The number of nodes in your cluster (what you call "n") should be independent of the number of partitions in a topic (let's call that "p"). 群集中的节点数(称为“ n”)应与主题中的分区数无关(我们称其为“ p”)。 The max number of consumers in a consumer group (Mirror Maker or any other single group) will be p, but the number you actually need will be entirely driven by your throughput performance and message ordering requirements. 使用者组(Mirror Maker或任何其他单个组)中的使用者的最大数量将为p,但是实际需要的数量将完全取决于吞吐量性能和消息订购要求。

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

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