-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
high rate producer error #959
Comments
What SHA of sarama are you using? Have you changed any configuration values (especially around maximum message sizes) on the broker? Do you have compression enabled on the broker? You may be running into https://issues.apache.org/jira/browse/KAFKA-1718.
This is not very surprising since you're generating 10 million |
thanks for the answer default config on the broker. i played with MaxRequestSize and flush bytes on the client , as you can see in the comments no commpression i dont know the samara version, i did a go get -t github.com/Shopify/sarama |
i dont see how the message can be too large , the message is the same "100" |
hmmm |
Yes, that sounds like it might be the issue. |
in kafka max.message.bytes is 1000012, and in sarama is 1000000 , so we should be good , they say it should be less, and it is less |
Yes, but Sarama does not apply that value to the total size of the batch, while Kafka (as of 0.11) does. If you set |
is that ok ? to reduce sarama.MaxRequestSize from 100 * 1024 * 1024 to just 1 mil ? |
That's basically what Kafka did with their change in 0.11 - producing is the only time client requests get that large. |
Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version: latest
Kafka Version: 0.11
Go Version: 1.9 / windows
Configuration
What configuration values are you using for Sarama and Kafka?
Logs
Problem Description
Running this simple code, where i try to produce 10 mils very small messages i got the following error
and memory is to the roof around 4 Gb
i tried #805 but not much success
ERROR: Failed to produce message: kafka server: Message was too large, server rejected it to avoid allocation error.
The text was updated successfully, but these errors were encountered: