-
Notifications
You must be signed in to change notification settings - Fork 307
Verify this plugin round-robins for every bulk request #274
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
Comments
The following test was performed:
output {
The above shows a balance of requests. Issue can be closed. Thanks |
There is a related bug where in the first two hosts listed in hosts => get more connections and consumed lots more filehandles. It's easily reproduced in logstash versions 2.1.0 - 2.1.3, and logstash versions 2.2.0 - 2.2.2 |
I've seen the question, on how the output load balances, coming up every now and then and the docs should have the answer. I'd still like a logstash developer to review and double check that it still is Round-robin per bulk in the current version of the plugin. My assumption is based on #274 and #493 (comment), but the first one is from 2015 and the second onw is from 2018, but with Logstash 2.4.
The elasticsearch-ruby client is supposed to round-robin requests to the nodes specified in the
hosts
setting. From internal testing it seems like one of the node is getting hit more often than the other. The setting used in testing was[localhost:9200, localhost:9201]
y-axis in the graph is the bytes-in to a port. Data in bulk request used for testing was the same size, so we should not see 2:1 requests distribution to hosts, should have almost equal distribution
The text was updated successfully, but these errors were encountered: