Loadbalance question

i've read that loadbalance: false will try another host if the selected one becomes unresponsive.

loadbalance

If set to true and multiple Logstash hosts are configured, the output plugin
load balances published events onto all Logstash hosts. If set to false, the
output plugin sends all events to only one host (determined at random) and will
switch to another host if the selected one becomes unresponsive.
The default value is false.

does setting loadbalance: true also enable failover?

or will it wait forever? or even worse, drop the data?

Hi @yodog,

from the docs:

If set to false, the
output plugin sends all events to only one host (determined at random) and will
switch to another host if the selected one becomes unresponsive.

That means that in case of error it will try the next one on the list

Ah yes
I've got the 'false' behavior. :slight_smile:
My question is: does it behave the same if set to 'true'?

Yes, it should go to a different host if one fails

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.