logstash icon indicating copy to clipboard operation
logstash copied to clipboard

Allow the use of enable_failover

Open philwinder opened this issue 10 years ago • 4 comments

AFAIK, enable_failover: true doesn't work. The framework should failover correctly.

philwinder avatar Feb 03 '16 08:02 philwinder

I've just tested it. From what I can see it actually works.

mwl avatar Feb 03 '16 14:02 mwl

Can you remind me about the intended behaviour? Maybe I misunderstand the command.

philwinder avatar Feb 03 '16 15:02 philwinder

With failover enabled the framework will not deregister on Scheduler SIGTERM. With failover disabled the framework will be deregistered on Scheduler SIGTERM.

What were your expectations?

mwl avatar Feb 03 '16 15:02 mwl

Ah ok. The problem I was having was when logstash wasn't setup correctly. Given that you set enable_failover: true. When an executor failed for some reason, it wasn't restarted. Eventually there would be no executors at all and the scheduler wouldn't start any. What's worse is that when I restarted the scheduler, it still didn't restart any executors, like it had some bad state.

The way I got it to work was to set enable_failover: false, correct my mistakes in configuration, and then everything has been working ever since.

philwinder avatar Feb 03 '16 15:02 philwinder