gpt4 book ai didi

apache-kafka - max.poll.records 如何影响消费者投票

转载 作者:行者123 更新时间:2023-12-03 20:16:23 24 4
gpt4 key购买 nike

max.poll.records最近在 kafka 消费者配置中更改为 500,但我想知道这如何影响消费者投票。它只是可以获取的最大记录数的上限还是消费者等待它获得 500 条记录。

最佳答案

最大投票记录: Yes from new consumer 此属性默认更改为 500,这意味着消费者每次轮询可以轮询最少 1 到最多 500 条记录,这意味着当分区没有足够数据时,消费者不会等待

fetch.min.bytes : 默认为 1 个字节,如果增加此配置,消费者将等待。

The minimum amount of data the server should return for a fetch request. If insufficient data is available the request will wait for that much data to accumulate before answering the request. The default setting of 1 byte means that fetch requests are answered as soon as a single byte of data is available or the fetch request times out waiting for data to arrive. Setting this to something greater than 1 will cause the server to wait for larger amounts of data to accumulate which can improve server throughput a bit at the cost of some additional latency.

关于apache-kafka - max.poll.records 如何影响消费者投票,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53308986/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com