-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What are the tradeoffs/downsides in reducing queue.buffering.max.ms? #41
Comments
Please read this section of the librdkafka introduction: It explains the key aspects of throughput and latency. If your application has special send patterns you might need to configure the two two config properties "batch.num.messages" and "queue.buffering.max.ms". |
Did this answer your question? |
yes and no. Was wondering if it increases cpu on either the client machine On Wed, Jan 1, 2014 at 5:24 PM, Magnus Edenhill notifications@github.comwrote:
|
Using a smaller value for "queue.buffering.max.ms" means less messages will be sent in each produce request, thus the request's overhead will be higher per-message than if more messages are sent. But it also depends on your usage pattern; what rate you are producing messages at, and if they are produced in bursts. You may need to optimize your "batch.num.messages" and "queue.buffering.max.ms" properties according to INTRODUCTION.md. That is:
When either one of these two properties are reached a produce request will be sent. If you need high throughput: both these properties should be high (default), |
Thanks for the info, closing |
I found that when I made this number small as compared to the default, performance quadrupled. I realize there is no free lunch however so wanted to better understand what the downside is of doing this. Is it an increase in CPU? (Client side or server side?)
The text was updated successfully, but these errors were encountered: