# Reroute API question

**URL:** <https://discuss.elastic.co/t/reroute-api-question/11389>\
**Category:** Elasticsearch\
**Created:** [March 30, 2013, 5:30am UTC](https://discuss.elastic.co/t/reroute-api-question/11389 "2013-03-30T05:30:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 30, 2013, 5:30am UTC](https://discuss.elastic.co/t/reroute-api-question/11389/1 "2013-03-30T05:30:30Z")

</div>

Hi ,

I have 4 nodes , each in a different machine and i have 4 shards each in a  
node.  
Now as one of the machine is very powerful , i transferred one of the shard  
from the week machine to the powerful machine , leaving the week machine  
without any shard.  
The shard transfer went very well but then once that is done , one of the 2  
shards in the powerful machine started getting transferred to the week  
machine,  
Which was what i was trying to avoid in the first place.

Is this the expected behavior , if so how can i achieve what i want.  
I dont want to decommission the week machine at the same time.

Thanks  
VIneeth

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [March 30, 2013, 8:47am UTC](https://discuss.elastic.co/t/reroute-api-question/11389/2 "2013-03-30T08:47:35Z")

</div>

Hi Vineeth

> I have 4 nodes , each in a different machine and i have 4 shards each  
> in a node.  
> Now as one of the machine is very powerful , i transferred one of the  
> shard from the week machine to the powerful machine , leaving the week  
> machine without any shard.  
> The shard transfer went very well but then once that is done , one of  
> the 2 shards in the powerful machine started getting transferred to  
> the week machine,  
> Which was what i was trying to avoid in the first place.
> 
> Is this the expected behavior , if so how can i achieve what i want.  
> I dont want to decommission the week machine at the same time.

Use shard allocation filtering:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 30, 2013, 10:02am UTC](https://discuss.elastic.co/t/reroute-api-question/11389/3 "2013-03-30T10:02:47Z")

</div>

Wowww , this is kick ass.

Thanks Clint.

On Sat, Mar 30, 2013 at 2:17 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> Hi Vineeth
> 
> > I have 4 nodes , each in a different machine and i have 4 shards each  
> > in a node.  
> > Now as one of the machine is very powerful , i transferred one of the  
> > shard from the week machine to the powerful machine , leaving the week  
> > machine without any shard.  
> > The shard transfer went very well but then once that is done , one of  
> > the 2 shards in the powerful machine started getting transferred to  
> > the week machine,  
> > Which was what i was trying to avoid in the first place.
> > 
> > Is this the expected behavior , if so how can i achieve what i want.  
> > I dont want to decommission the week machine at the same time.
> 
> Use shard allocation filtering:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/allocation/)
> 
> clint
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:43am UTC](https://discuss.elastic.co/t/reroute-api-question/11389/4 "2017-07-06T02:43:30Z")

</div>

Closed on July 6, 2017, 2:43am UTC


