-
Notifications
You must be signed in to change notification settings - Fork 387
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
Performance issue #147
Comments
Thanks for trying that and reporting. Validating performance is indeed something we must do before a final release, see #123 |
@patriknw I found that the bottleneck is the consumer : which is consuming 5 messages per second. The Producer and "pipe" are super-fast and finish quickly but the Consumer is super slow and even after all messages are emitted it goes 5 messages/sec... However if I change it to |
I can understand that offset committing is slow, and that is why batching of commits should be used. It's anyway important that the single commits are decent. 5 messages per second is not decent. 125 is also really bad. |
Just for the record: I modified the gist a bit in order to make sure we're only measuring the final consumer: https://gist.github.com/kciesielski/8a07f1562d25e497bdb5b22d1c71b55c With local Kafka: Note that this includes time needed to connect. |
@l15k4 Note that you can't fetch more than |
Ok, I changed to |
@l15k4 Is |
@kciesielski yeah https://github.com/flozano/docker-kafka ... They have a bug in the |
@l15k4 Interesting, is that a bug in Kafka itself or just a bug in docker image? |
@kciesielski In the image spotify/docker-kafka#34 (comment) |
I see, thanks :) |
Hey,
I was following the samples in Readme and they work although they are insanely slow, it takes 17 seconds to pipe 100 messages from topic1 to topic2 and 125 seconds with 1000 events
https://gist.github.com/l15k4/5cdd6be19ec2fcb9a3a32c23f0f6866c
I tried that with
docker run --rm -p 9092:9092 -p 2181:2181 spotify/kafka
instead of the embedded one...Am I doing something wrong? Or is it a matter of setting kafka differently ?
The text was updated successfully, but these errors were encountered: