简体   繁体   English

为指定主题配置max.poll.interval.ms

[英]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.

相关问题 Spring Kafka,覆盖 max.poll.interval.ms? - Spring Kafka, overriding max.poll.interval.ms? Kafka poll 和 max.poll.interval.ms - 批处理最佳实践 - Kafka poll and max.poll.interval.ms - Batch Processing best practices Consumer CommitFailedException - 后续调用 poll() 之间的时间长于配置的 max.poll.interval.ms - Consumer CommitFailedException - time between subsequent calls to poll() was longer than the configured max.poll.interval.ms 如何知道在 java kafka 应用程序客户端中是否达到了 max.poll.interval.ms? - How to know if max.poll.interval.ms is reached in java kafka application client? 更改Kafka配置max.poll.interval.ms导致一名消费者卡在(重新)加入组中 - Change Kafka configuration max.poll.interval.ms causes one consumer stuck at (Re-)joining group Spring 云 stream 卡夫卡消费者卡在长时间运行的作业和 max.poll.interval.ms 的大值 - Spring cloud stream Kafka consumer stuck with long running job and large value for max.poll.interval.ms 在 Kafka 消费者配置中将 max.poll.interval.ms 设置为大于 request.timeout.ms 的负面影响是什么 - What is negative effects of setting max.poll.interval.ms larger than request.timeout.ms in Kafka consumer configs Apache Kafka-了解在poll()方法中作为参数存在的超时与fetch.max.wait.ms之间的关系 - Apache Kafka- Understanding the relationship between timeout present as a parameter in the poll() method and fetch.max.wait.ms Kafka Connect SourceTask 的轮询间隔 - Poll Interval for Kafka Connect SourceTask 当Kafka消费者不使用订阅方法时,是否检查session.timeout.ms或max.pool.interval.ms? - When Kafka consumer don't use subscribe method, do it check session.timeout.ms or max.pool.interval.ms?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM