# How to force a node to become master?

**URL:** https://discuss.elastic.co/t/how-to-force-a-node-to-become-master/309444
**Category:** Elasticsearch
**Created:** [July 12, 2022, 5:44pm UTC](https://discuss.elastic.co/t/how-to-force-a-node-to-become-master/309444 "2022-07-12T17:44:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pushshift](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pushshift/32/50408_2.png) [@pushshift](https://discuss.elastic.co/u/pushshift)
#### Post date: [July 12, 2022, 5:44pm UTC](https://discuss.elastic.co/t/how-to-force-a-node-to-become-master/309444/1 "2022-07-12T17:44:47Z")

</div>

I upgrades a cluster from version 7.17.5 to 8.3.2 and I'm having issues with master discovery. The node that is set to be the master continues to log this:

`[2022-07-12T17:39:00,115][WARN][o.e.c.c.ClusterFormationFailureHelper] [es1] master not discovered or elected yet, an election requires at least 2 nodes with ids from [uai1YoJwRlCjrOVKrLQKNA, FCYGfJhwQ2iTy7PeozEVeg, 0b_QLfjpTkC9SVVjj2b0vg], have only discovered non-quorum [{es1}{FCYGfJhwQ2iTy7PeozEVeg}{gnuTc_d_QdOyIPt8cbY5nw}{es1}{192.168.1.86}{192.168.1.86:9300}{dim}, {es3}{nboXG_DmQAyXsZXbbRLGxA}{fKzT_np6RqWvkM39wGV8SQ}{es3}{192.168.1.87}{192.168.1.87:9300}{dim}]; discovery will continue using [127.0.1.1:9300, 192.168.1.87:9300] from hosts providers and [{es1}{FCYGfJhwQ2iTy7PeozEVeg}{gnuTc_d_QdOyIPt8cbY5nw}{es1}{192.168.1.86}{192.168.1.86:9300}{dim}] from last-known cluster state; node term 22, last-accepted version 8657 in term 22`

It was my understanding that having this line in the configuration would force a specific node to become master:

`cluster.initial_master_nodes : ["es1"]`

I understand that hard-coding a master node goes against the core purpose of having an election to determine a master node for redundancy. However, just for the sake of getting the cluster running until I can debug the issue in depth, what configuration settings am I missing that will force the node to become a master for the cluster?

Thanks!

---

<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: [August 9, 2022, 5:45pm UTC](https://discuss.elastic.co/t/how-to-force-a-node-to-become-master/309444/2 "2022-08-09T17:45:28Z")

</div>

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