logstash-plugins / logstash-output-lumberjack

Apache License 2.0
6 stars 24 forks source link

Connect to upstream hosts in random order #34

Open garethhumphriesgkc opened 9 months ago

garethhumphriesgkc commented 9 months ago

At present lumberjack always connect to the listed hosts in order specified in the configuration. This is bad for load balancing reasons, as the first host will always get the majority or the work, leaving subsequent nodes idle.

Bu shuffling the host list before connecting, we connect to them in a random order each time, spreading the load in a more even way.