lua-resty-kafka
lua-resty-kafka copied to clipboard
openresty-lua and kafka server BufferOverflow error
we are running openresty-lua and Kafka servers in different data centres, openresty handles 20K requests per second. whenever openresty-lua sending data in async model to Kafka server, It,s throwing BufferOverflow error.
How to overcome this error?
@dev-omniwyse
the network between the openresty and kafka may be a bit slow, you can increase the max_buffering and batch_num.
you can also try to use the concurrency branch, it can send data faster, but it haven't been tested fully. https://github.com/doujiang24/lua-resty-kafka/tree/concurrency
Hi doujiang24,
Thanks for the reply! Where exactly we need to do changes to increase the max_bufferig and batch_num.