DEV Community

Discussion on: Beginner's guide to Elasticsearch

Collapse
 
lisahjung profile image
Lisa Jung • Edited

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!