fetch.max.bytes--52428800 (50 mebibytes)
heartbeat.interval.ms--3000 (3 seconds) 和consumer coordinator之间的预跳时间(The value must be set lower than session.timeout.ms, but typically should be set no higher than 1/3 of that value)
max.partition.fetch.bytes -- 1048576 (1 mebibyte) 需要大于message.max.bytes (broker config) max.message.bytes (topic config)
session.timeout.ms--10000 (10 seconds)
auto.offset.reset--latest
connections.max.idle.ms--540000 (9 minutes)
default.api.timeout.ms--60000 (1 minute)
max.poll.interval.ms--300000 (5 minutes) poll的间隔时间,超过这个时间认为消费者死亡,会rebalance,如果处理时间太长
max.poll.records--500
request.timeout.ms--30000 (30 seconds)
auto.commit.interval.ms--5000 (5 seconds)
fetch.max.wait.ms--500 这么长时间不够fetch.min.bytes也返回
metadata.max.age.ms--300000 (5 minutes)
reconnect.backoff.max.ms--1000 (1 second)
retry.backoff.ms--100
本文详细介绍了Kafka消费者的各种配置参数及其意义,包括fetch.min.bytes、fetch.max.bytes、heartbeat.interval.ms等关键设置,并解释了这些参数如何影响消费者的性能与稳定性。
4696

被折叠的 条评论
为什么被折叠?



