# Set Static Master Node in Elasticsearch Cluster

**URL:** <https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858>\
**Category:** Elasticsearch\
**Created:** [December 9, 2022, 6:15am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858 "2022-12-09T06:15:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [December 9, 2022, 6:15am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/1 "2022-12-09T06:15:04Z")

</div>

Hi,

I have a 3 Node Elasticsearch. I have set the discovery.seed\_hosts: ["Node1", "Node2", "Node3"] and cluster.initial\_master\_nodes: ["Node1"]. What is the configuration if I want the master node " Node1" to be re-elected automatically if the Node1 becomes available again after shutting down.

---

<div class="post-metadata">

**Author:** ![Yatharth\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yatharth_singh/32/104451_2.png) [@Yatharth\_Singh](https://discuss.elastic.co/u/Yatharth_Singh)\
**Post date:** [December 9, 2022, 6:22am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/2 "2022-12-09T06:22:55Z")

</div>

Hi Hasmine you can refer this link maybe this can help you .

> **[Quorum-based decision making | Elasticsearch Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-quorums.html)**

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 9, 2022, 7:23am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/3 "2022-12-09T07:23:02Z")

</div>

You can not control that and any master node can be elected at any time. You should not look to control this. What is the reason you think this is necessary/wise?

---

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [December 9, 2022, 7:28am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/4 "2022-12-09T07:28:29Z")

</div>

Hi @Yatharth_Singh, will check this. Thank you!

---

<div class="post-metadata">

**Author:** ![hjsroldan](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjsroldan](https://discuss.elastic.co/u/hjsroldan)\
**Post date:** [December 9, 2022, 7:30am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/5 "2022-12-09T07:30:38Z")

</div>

Hi @Christian_Dahlqvist, I have an application sourcing to Elasticsearch. Should I point only the master node or should I point all the nodes to the application?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 9, 2022, 9:22am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/6 "2022-12-09T09:22:08Z")

</div>

The active master node is not involved in the indexing or query flow - it just monitor and manages the cluster state. All clients should be configured with all nodes so they can send requests across the cluster.

---

<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:** [January 6, 2023, 9:22am UTC](https://discuss.elastic.co/t/set-static-master-node-in-elasticsearch-cluster/320858/7 "2023-01-06T09:22:25Z")

</div>

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