# How can change the data node to master node?

**URL:** <https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770>\
**Category:** Elasticsearch\
**Created:** [June 23, 2023, 12:17pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770 "2023-06-23T12:17:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)\
**Post date:** [June 23, 2023, 12:17pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/1 "2023-06-23T12:17:55Z")

</div>

I have 3 data node, so I want to change the one node for master and another two nodes for data nodes.

---

<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:** [June 23, 2023, 12:29pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/2 "2023-06-23T12:29:40Z")

</div>

If you have 3 nodes in tbe cluster you generally want them all to be master eligible and hold data in order to improve resiliency and allow the cluster to continue working even if one node fails.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 23, 2023, 12:31pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/3 "2023-06-23T12:31:11Z")

</div>

like Christian said.  
I have run three node cluster with all master, all data, all ingest, all kibana for long time no problem.

---

<div class="post-metadata">

**Author:** ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)\
**Post date:** [June 23, 2023, 12:52pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/4 "2023-06-23T12:52:23Z")

</div>

But I want to enable Quorum-based decision making for Production use.

---

<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:** [June 23, 2023, 12:56pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/5 "2023-06-23T12:56:24Z")

</div>

If you have three nodes that are all master-eligible and data nodes, master election will be performed based on quorum.

I therefore do not understand what you are looking to achieve by changing node roles.

---

<div class="post-metadata">

**Author:** ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)\
**Post date:** [June 23, 2023, 1:24pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/6 "2023-06-23T13:24:29Z")

</div>

I thought, If one data server is down then the master node is store that data. So I want to change that.

I have another question.

how to improve the production for this kinds, because I want to store the data while the server is down and logs also hits per minute.

---

<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:** [June 23, 2023, 1:26pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/7 "2023-06-23T13:26:45Z")

</div>

If you have 3 nodes, make all store data and be master eligible. Also ensure all indices have a replica configured. If one of your nodes then fail, the remaining two will be able to form quorum and the cluster can continue operating.

---

<div class="post-metadata">

**Author:** ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)\
**Post date:** [June 23, 2023, 1:46pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/8 "2023-06-23T13:46:29Z")

</div>

Thank you ... for quick response

I got it

---

<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:** [July 21, 2023, 1:47pm UTC](https://discuss.elastic.co/t/how-can-change-the-data-node-to-master-node/336770/9 "2023-07-21T13:47:12Z")

</div>

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