# How to migrate from multi node cluster to singe node cluster

**URL:** <https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104>\
**Category:** Elasticsearch\
**Created:** [July 7, 2020, 7:27am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104 "2020-07-07T07:27:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![klokkie](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@klokkie](https://discuss.elastic.co/u/klokkie)\
**Post date:** [July 7, 2020, 7:27am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/1 "2020-07-07T07:27:07Z")

</div>

Hi

Is there some sort of work instruction how to migrate from a 5 node cluster (all data nodes) with 3 eligable masters to a single node cluster?

Regards,  
Tim

---

<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:** [July 7, 2020, 7:31am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/2 "2020-07-07T07:31:53Z")

</div>

Not documented as it's not common. The best option is to remove replicas, then use allocation filtering to exclude nodes one-by-one, then shut them down.

Note though, that we recommend at least 3 nodes for a fault tolerant cluster.

---

<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:** [July 7, 2020, 7:40am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/3 "2020-07-07T07:40:50Z")

</div>

Which version are you on?

---

<div class="post-metadata">

**Author:** ![klokkie](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@klokkie](https://discuss.elastic.co/u/klokkie)\
**Post date:** [July 7, 2020, 7:42am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/4 "2020-07-07T07:42:25Z")

</div>

Ok, I thought it would be something like this.  
Then I assume removing the 2 non-master nodes won't be an issue after allocation filtering.  
But how to go from 3 master nodes to 1 regarding the data.

---

<div class="post-metadata">

**Author:** ![klokkie](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@klokkie](https://discuss.elastic.co/u/klokkie)\
**Post date:** [July 7, 2020, 7:43am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/5 "2020-07-07T07:43:16Z")

</div>

It is 7.6.0.

---

<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:** [August 4, 2020, 7:43am UTC](https://discuss.elastic.co/t/how-to-migrate-from-multi-node-cluster-to-singe-node-cluster/240104/6 "2020-08-04T07:43:24Z")

</div>

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