kafka生产者参数优化 lua-resty-kafka:buffer overflow while logging request
KAFKA参数调优实战,看这篇文章就够了!https://www.cnblogs.com/technologykai/articles/10875480.html
kafka生产者使用不当导致的应用挂起/夯住 https://www.jianshu.com/p/45258f744425
https://github.com/doujiang24/lua-resty-kafka
Error:buffer overflow while logging request
https://github.com/doujiang24/lua-resty-kafka/issues/76
优化参数:
-
batch_num
Specifies the
batch.num.messages
. Default200
. -
batch_size
Specifies the
send.buffer.bytes
. Default1M
(may reach 2M). Be careful, SHOULD be smaller than thesocket.request.max.bytes / 2 - 10k
config in kafka server. -
max_buffering
Specifies the
queue.buffering.max.messages
. Default50,000
.
Copyright © 2024 Primzahl. All rights reserved.