# Can I have only one master eligible node in elasticsearch

**URL:** <https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461>\
**Category:** Elasticsearch\
**Created:** [April 4, 2022, 7:19am UTC](https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461 "2022-04-04T07:19:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachit\_upadhyay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rachit_upadhyay/32/102263_2.png) [@rachit\_upadhyay](https://discuss.elastic.co/u/rachit_upadhyay)\
**Post date:** [April 4, 2022, 7:19am UTC](https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461/1 "2022-04-04T07:19:37Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fbc1a0163c834e94b46dfdf755f439caa5bf60fe.png)

I am getting following log message when my single master eligible node goes down and then starts again in ecs.  
Is it possible to have a cluster with only one master eligible node? What is the ideal number of master eligible nodes in a cluster? Can I use "voting-only master-eligible node" to overcome this situation?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 4, 2022, 7:29am UTC](https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461/2 "2022-04-04T07:29:10Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

> [@rachit\_upadhyay](#):
>
> Is it possible to have a cluster with only one master eligible node?

It's entirely possible. It's not recommended however.

> [@rachit\_upadhyay](#):
>
> What is the ideal number of master eligible nodes in a cluster?

Typically it's 3.

> [@rachit\_upadhyay](#):
>
> Can I use "voting-only master-eligible node" to overcome this situation?

Only if you have another master eligible node to take the place of the one that you restarted.

How many nodes do you have in your cluster?

---

<div class="post-metadata">

**Author:** ![rachit\_upadhyay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rachit_upadhyay/32/102263_2.png) [@rachit\_upadhyay](https://discuss.elastic.co/u/rachit_upadhyay)\
**Post date:** [April 4, 2022, 7:39am UTC](https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461/3 "2022-04-04T07:39:46Z")

</div>

I am sorry about the picture.  
Right now I am trying to use a single master and a data node cluster and I am getting the above mentioned log when I was testing it out by shutting down the master node. The log is for the data node where it isn't able to connect to the master as when the master come up again it has a different UUID.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 2, 2022, 7:39am UTC](https://discuss.elastic.co/t/can-i-have-only-one-master-eligible-node-in-elasticsearch/301461/4 "2022-05-02T07:39:57Z")

</div>

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