# Changing master/data/ingest node to be dedicated master

**URL:** <https://discuss.elastic.co/t/changing-master-data-ingest-node-to-be-dedicated-master/82767>\
**Category:** Elasticsearch\
**Created:** [April 18, 2017, 8:00pm UTC](https://discuss.elastic.co/t/changing-master-data-ingest-node-to-be-dedicated-master/82767 "2017-04-18T20:00:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsullivan93](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tsullivan93](https://discuss.elastic.co/u/tsullivan93)\
**Post date:** [April 18, 2017, 8:00pm UTC](https://discuss.elastic.co/t/changing-master-data-ingest-node-to-be-dedicated-master/82767/1 "2017-04-18T20:00:04Z")

</div>

I currently am running a 4 node instance of Elasticsearch, and on one node we have an instance of Elasticsearch and Logstash running. This node has a master/data/ingest role, but that in combination with the Logstash instance is proving to be CPU intensive. We however are adding a 5 node to the cluster so to alleviate some of the cpu load on the Elasticsearch/Logstash node we changing it to be a dedicated master role. My question is what would be the correct process to change the role of a node to limit damage and downtime. I understand you can change roles in the elasticsearch.yml , but if I change the role to not be a data node anymore would this effect the index shards currently on that node? In turn would that effect the rest of the cluster? I should add that our indices are running with number of replicas set to 1.

---

<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 18, 2017, 9:27pm UTC](https://discuss.elastic.co/t/changing-master-data-ingest-node-to-be-dedicated-master/82767/2 "2017-04-18T21:27:44Z")

</div>

You will need to run an exclude allocation filter to remove shards from the node, shut it down, change the role, then restart 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:** [May 16, 2017, 9:42pm UTC](https://discuss.elastic.co/t/changing-master-data-ingest-node-to-be-dedicated-master/82767/3 "2017-05-16T21:42:13Z")

</div>

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