# Move existing indexes from specific nodes

**URL:** <https://discuss.elastic.co/t/move-existing-indexes-from-specific-nodes/122496>\
**Category:** Elasticsearch\
**Created:** [March 5, 2018, 11:48am UTC](https://discuss.elastic.co/t/move-existing-indexes-from-specific-nodes/122496 "2018-03-05T11:48:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vakarami](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vakarami](https://discuss.elastic.co/u/vakarami)\
**Post date:** [March 5, 2018, 11:48am UTC](https://discuss.elastic.co/t/move-existing-indexes-from-specific-nodes/122496/1 "2018-03-05T11:48:25Z")

</div>

Hi. I know that with below config we can exclude some nodes from cluster, And elastic itself relocate existing indexes on those nodes.  
PUT /\_cluster/settings  
{  
"transient" : {  
"cluster.routing.allocation.exclude.\_ip" : "192.168.2.\*"  
}  
}

But what I really want is to exclude some indexes from particular nodes, I tried this config  
PUT test/\_settings  
{  
"index.routing.allocation.exclude.\_ip": "192.168.2.\*"  
}  
This config prohibit elastic to assign new shards to this nodes, but it seems that it does not make elastic to relocate index's shards from those node. Am I right?

I know I can reroute shards manually but there are many shards and it is almost impossible!

If it matters I use elastic 2.3.5

---

<div class="post-metadata">

**Author:** ![vakarami](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vakarami](https://discuss.elastic.co/u/vakarami)\
**Post date:** [March 6, 2018, 12:43pm UTC](https://discuss.elastic.co/t/move-existing-indexes-from-specific-nodes/122496/2 "2018-03-06T12:43:24Z")

</div>

Ok, The answer is that that config will make elastic to move indexes from excluded nodes, But supposedly elastic do it at arbitrary time!

---

<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 3, 2018, 12:43pm UTC](https://discuss.elastic.co/t/move-existing-indexes-from-specific-nodes/122496/3 "2018-04-03T12:43:27Z")

</div>

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