I have a pretty simple ELK stack here with 4 ES nodes (3 data nodes and 1 client node).
I lost one of the data nodes and all of a sudden my Logstash servers couldn't send anything to the ES cluster. I found this error on the LS nodes and on the surviving ES nodes:
I am assuming that this is because the ES cluster could no longer elect a master...but I thought that 2 nodes in a 3 node cluster were enough. Did I miss something along the way?
(Sorry if this is basic ES knowledge. I found a posting about someone else running into this problem as well during a rolling upgrade, but there was not a response.)
Uhhh....crap. I thought that it was automatically computed to (# nodes/2 + 1) if not defined...but now that I read the config...that's not exactly what it says. So...it's actually commented out in my config! Doh!
So...I should have:
discovery.zen.minimum_master_nodes: 2
I am guessing that the right way to update this would be:
Change it on all three nodes
Shut down all my logstash nodes so nothing is getting sent to ES.
Shut down each ES node
Start each ES node
Otherwise, I'll run into the same problem as soon as I restart ES on a node to reload the new config.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.