Software engineer with a love for rock climbing. With a strong background in developer advocacy, I love creating tutorials & educational meetups to help developers get unstuck!
Location
Denver, Colorado
Work
Senior Developer Advocate @ Grafana | Full Stack Developer
What a great question! You should have only one active master node in a cluster.
This documentation explains why in depth(elastic.co/guide/en/elasticsearch/...).
To summarize the excerpts from this document, the master node is considered as the supreme ruler of the cluster. It decides when new indices can be created, how shards are moved and etc. If you have two master nodes that think they are in charge, data integrity becomes perilous and your cluster is at danger of losing data.
However, you can designate multiple master eligible nodes. So if the master node were to go down, one of the master eligible node can be elected to become the master node.
Hope this helps!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for your effort
I have a question concerning establishing a cluster with two master nodes, is it possible !?
Hi @18ahmed !
What a great question! You should have only one active master node in a cluster.
This documentation explains why in depth(elastic.co/guide/en/elasticsearch/...).
To summarize the excerpts from this document, the master node is considered as the supreme ruler of the cluster. It decides when new indices can be created, how shards are moved and etc. If you have two master nodes that think they are in charge, data integrity becomes perilous and your cluster is at danger of losing data.
However, you can designate multiple master eligible nodes. So if the master node were to go down, one of the master eligible node can be elected to become the master node.
Hope this helps!