【发布时间】:2018-05-27 00:06:01
【问题描述】:
我在 Kafka 0.10.0.1 集群中有一个包含 10 个分区的主题。我有一个产生多个消费者线程的应用程序。对于这个主题,我将产生 5 个线程。在我的应用程序日志中多次看到此条目
INFO :: AbstractCoordinator:600 - Marking the coordinator x.x.x.x:9092
(id:2147483646 rack: null) dead for group notifications-consumer
然后有几个条目说(Re-)joining group notifications-consumer.
之后我还看到一个警告说
Auto commit failed for group notifications-consumer: Commit cannot be completed since
the group has already rebalanced and assigned the partitions to another member. This means
that the time between subsequent calls to poll() was longer than the configured
max.poll.interval.ms, which typically implies that the poll loop is spending too much time
message processing. You can address this either by increasing the session timeout
or by reducing the maximum size of batches returned by poll() with max.poll.records.
现在我已经像这样调整了我的消费者配置
props.put("max.poll.records", 200);
props.put("heartbeat.interval.ms", 20000);
props.put("session.timeout.ms", 60000);
因此,即使在正确调整配置后,我仍然会收到此错误。在重新平衡期间,我们的应用程序完全没有响应。请帮忙。
【问题讨论】:
标签: apache-kafka