# Changing node roles in the future

**URL:** <https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924>\
**Category:** Elasticsearch\
**Created:** [April 2, 2019, 7:21am UTC](https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924 "2019-04-02T07:21:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anish\_Sujanani](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Anish\_Sujanani](https://discuss.elastic.co/u/Anish_Sujanani)\
**Post date:** [April 2, 2019, 7:21am UTC](https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924/1 "2019-04-02T07:21:44Z")

</div>

Hi everyone, I have a couple of questions about clustering and changing node roles:

For all scenarios below, I would first shut down the entire cluster, make changes to the config files for each node and bring the cluster back up.  
I am looking to implement scenario 1 down the line, scenarios 2 and 3 are stated to understand behaviour.

**Scenario 1**  
Changing a data-only node to master+data

- I would imagine this would work seamlessly? It would continue to hold its own primary shards and replica shards from other nodes, but would also now participate in master responsibilities.

**Scenario 2**  
Changing a master+data node to data-only

- Again, would this work seamlessly?

**Scenario 3**  
Changing a master+data/data-only node to master-only

- Would the primary and replica shards be transferred to other nodes in the cluster or do I have to manually transfer/route them?

Thank you!

---

<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:** [April 30, 2019, 7:21am UTC](https://discuss.elastic.co/t/changing-node-roles-in-the-future/174924/2 "2019-04-30T07:21:58Z")

</div>

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