# Migrating master & data node to just a data node & some general advice on setting up our clsuter

**URL:** <https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034>\
**Category:** Elasticsearch\
**Created:** [November 15, 2019, 10:04am UTC](https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034 "2019-11-15T10:04:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Swift](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_swift/32/41630_2.png) [@John\_Swift](https://discuss.elastic.co/u/John_Swift)\
**Post date:** [November 15, 2019, 10:04am UTC](https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034/1 "2019-11-15T10:04:47Z")

</div>

Looking for some advice on rejigging my elastic cluster.  
Currently have 7 nodes with 3 set to masters & data nodes & 5 set to just Data nodes.  
The cluster is used for monitoing of applications so very much log entry orrianted along with holding metricbeat data  
I'm using ILM so  
3 nodes are set to Hot to contain the most recent docs (these are set to Master nodes)  
3 nodes set to Warm for mid term logs  
1 node set to cold for anything old that is rarely accessed.

Reading up on scaling out the cluster it seems I might not have the cluster setup correctly so looking for a bit of advice on how i could restructure

from what i've read I could do with having 3 dedicated master only nodes? & then introducing a coordiantiong node or two to handle the Kibana traffic ?  
for which i have capacity availible to do.

if that is the case then

1. whats the best way to migrate the 3 master data nodes to data only & introduce the new masters. Is it just a case of starting up the 3 new master elaigable nodes & then 1 by 1 restarting the old 3 master nodes after setting masternode setting to false?

2. would this need a full cluster restart or could i manage with rolling restarts (may have answered that one above)

3. Currently in my es.yml I have cluster bootstrapping set to the 3 current master nodes, from reading up on this setting it's only used for the very first time, i take it i dont need this anymore even if onbaording brand new masters?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 15, 2019, 10:15am UTC](https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034/2 "2019-11-15T10:15:55Z")

</div>

Assuming you're using 7.x, yes, you should be able to add three dedicated master nodes and then one-by-one restart the existing master/data nodes as data-only nodes. (The one-by-one bit is important, don't do them all at once). This doesn't need a full cluster restart. And yes, you can remove the `cluster.initial_master_nodes` setting everywhere since your cluster is already established.

---

<div class="post-metadata">

**Author:** ![John\_Swift](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_swift/32/41630_2.png) [@John\_Swift](https://discuss.elastic.co/u/John_Swift)\
**Post date:** [November 15, 2019, 10:19am UTC](https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034/3 "2019-11-15T10:19:13Z")

</div>

> [@DavidTurner](#):
>
> restart the existing m

Yeah i'm on 7.x

Thanks for the confirmation 🙂

---

<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:** [December 13, 2019, 10:19am UTC](https://discuss.elastic.co/t/migrating-master-data-node-to-just-a-data-node-some-general-advice-on-setting-up-our-clsuter/208034/4 "2019-12-13T10:19:16Z")

</div>

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