# Easy way to transfer data from one node to another?

**URL:** <https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711>\
**Category:** Elasticsearch\
**Created:** [March 30, 2021, 12:03am UTC](https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711 "2021-03-30T00:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [March 30, 2021, 12:03am UTC](https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711/1 "2021-03-30T00:03:56Z")

</div>

From time to time, we know that we have to shutdown nodes (remove a node from a cluster) and add a new one. Normally, we shutdown the node, add a new one, and just let the cluster determine the best way to re-allocate everything.

What I’m wondering is if there is in fact a better way to do this — e.g. add a new one and just ask the node that we are shutting down to transfer all its data over to the new node and then turn it off when the migration is complete.

I ask because this way I can keep the cluster in green state throughout which feels safer. I know that I can theoretically change node types from hot to something else so that data will just move out on its own, but I’m not sure if there are better ways to do this.

Thanks!

---

<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:** [March 30, 2021, 2:00am UTC](https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711/2 "2021-03-30T02:00:26Z")

</div>

You can exclude the node being removed from allocation, which is akin to the same thing.

---

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [March 30, 2021, 2:34am UTC](https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711/3 "2021-03-30T02:34:44Z")

</div>

I see. So something like this?

```auto
PUT _cluster/settings
{
  "transient" : {
    "cluster.routing.allocation.exclude._ip" : "10.0.0.1"
  }
}

```

That’s great to know. 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 27, 2021, 2:35am UTC](https://discuss.elastic.co/t/easy-way-to-transfer-data-from-one-node-to-another/268711/4 "2021-04-27T02:35:20Z")

</div>

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