简体   繁体   English

同一消费者组内具有不同分区数量的不同 kafka 主题

[英]Different kafka topic with different amount of partitions within the same consumer group

Can I have different kafka topic with different amount of partitions within the same consumer group?我可以在同一个消费者组中有不同数量的分区的不同 kafka 主题吗? If so, can I scale the consumers to the number of the topic with the most partitions?如果是这样,我可以将消费者扩展到分区最多的主题的数量吗? Thanks谢谢

Yes, each topic can independently have any number of partitions.是的,每个主题可以独立拥有任意数量的分区。 I'm assuming you are consuming multiple topics with the same consumer, in any case, what will happen is that the topics that have fewer partitions than consumers will be consumed by a subset of the consumers (some consumers will not get any messages from these topics since they won't have any partition assigned)我假设您正在使用同一个消费者使用多个主题,无论如何,会发生的情况是分区少于消费者的主题将被一部分消费者消费(一些消费者不会从这些消费者那里获得任何消息)主题,因为它们不会分配任何分区)

暂无
暂无

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

相关问题 Apache Kafka-一种算法/策略,用于由单个使用者从同一主题的不同分区中提取消息 - Apache Kafka- Algorithm/Strategy used to pull messages from different partitions of a same topic by a Single Consumer 来自不同组的Kafka消费者来自不同的主题分区 - Kafka Consumer from different group consuming from different partition of Topic 卡夫卡 - 主题与分区与消费者 - Kafka - Topic & Partitions & Consumer 不同 Kafka 主题上的分区是否位于同一消费者(k8s pod)中 - Are partitions on different Kafka topics co-located within same consumer (k8s pod) 从两个不同分区(相同主题)消费的单个 Kafka 消费者如何跟踪每个分区偏移量? - How does a single Kafka consumer, consuming from two different partitions (same topic), keeps track of each partition offset? 来自同一主题的消息丢失/丢失,在卡夫卡中与不同的消费者群体一起阅读 - Message loss/missing from same topic, read with different consumer group in Kafka 对不同的 kafka 主题使用相同的消费者组 - Using same consumer group for different kafka topics 了解同一消费者组内但订阅不同的 Kafka 消费者重新平衡的性质 - Understanding the nature of Kafka Consumer Rebalance within same consumer-group but with different subscriptions 来自不同分区的Kafka多个消费者 - Kafka multiple consumer from different partitions Kafka 消费者订阅了同一消费者组中的不同主题 - Kafka Consumers subscribed to different topics in same consumer group
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM