[英]Configure max.poll.interval.ms for a specified topic
As I can see in this document https://kafka.apache.org/documentation/#consumerconfigs_max.poll.interval.ms there is a parameter in kafka which controls the maximum time between poll invocations before the consumer will proactively leave the group.正如我在本文档https://kafka.apache.org/documentation/#consumerconfigs_max.poll.interval.ms中看到的那样,kafka 中有一个参数控制在消费者主动离开组之前轮询调用之间的最长时间。
Is there anyway to configure this parameter to apply to only a specific topic?无论如何配置此参数仅适用于特定主题?
This is a consumer level config which means you would need a brand new consumer instance with a different config and subscribe to only that topic (assuming you want more time to process a set of messages from a specific topic but not the rest you subscribe to).这是一个消费者级别的配置,这意味着您需要一个具有不同配置的全新消费者实例并仅订阅该主题(假设您需要更多时间来处理来自特定主题的一组消息,而不是您订阅的 rest) .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.