-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Logstash 2.2.x kafka output large increase in broker tcp connections #4754
Comments
@thomasquatorze do you set a value for
The bigger change from 2.1.x to 2.2.x is the re-architecture of pipeline which may cause this. Read about it https://www.elastic.co/blog/logstash-2-2-0-and-2-1-2-released and https://www.elastic.co/blog/upgrade-guide-for-logstash-2-2 |
No I did not set |
Logstash 2.2.0 introduced the new pipeline and defaulted the number of pipeline workers (and output workers) to the number of CPU cores available, so if you have 10 CPU cores (or close to it), then I would expect Logstash 2.2.x to have 10x the number of connections to Kafka as Logstash 2.1 did. We noticed this problem and reverted the output workers setting back to 1 by default in Logstash 2.3. If you are running Logstash 2.2, you can work around this by setting Given 2.2 is no longer receiving new features and 2.3 is available with this resolved (I believe), I will close this> |
Upgrading from logstash 2.1.1 to 2.2.2 and seeing a rough 10x increase in established tcp connections to brokers. Running in a large environment this is a problem.
Testing env:
Same config with logstash 2.1.1 maintain ~15 tcp connections
Setting "message_key" to multiple test strings (not starting with digit) had not effect.
Noticeable change between ls 2.1.1 & 2.2.2 is upgrade from jruby-kafka 1.4.0 to 1.5.0
The text was updated successfully, but these errors were encountered: