# Reroute has no effect?

**URL:** <https://discuss.elastic.co/t/reroute-has-no-effect/11361>\
**Category:** Elasticsearch\
**Created:** [March 28, 2013, 5:50pm UTC](https://discuss.elastic.co/t/reroute-has-no-effect/11361 "2013-03-28T17:50:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Gruben](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Todd\_Gruben](https://discuss.elastic.co/u/Todd_Gruben)\
**Post date:** [March 28, 2013, 5:50pm UTC](https://discuss.elastic.co/t/reroute-has-no-effect/11361/1 "2013-03-28T17:50:24Z")

</div>

I am attempting to move a shard from one node to another with the following  
command

curl -XPOST 'localhost:9200/\_cluster/reroute' -d '{  
"commands" : [  
{"move" : {"index" : "segments\_index\_25", "shard" : 2, "from\_node"  
: "ZFjxfFmTT96tGO\_AgMl5FA", "to\_node" : "ijc\_elPKTPyp97dY6AfLEQ"}}  
]  
}'

It appears to start the process and I receive an "OK" after the submission,  
it is indicated on elasticsearch-head that it is moving. but the shard  
never ends up on the destination node and the shard returns back to green  
and normal on the first node. I see nothing in the log files to indicate  
an error, so I am wondring if i am missing something.

I am wanting to move this shard to a larger more powerful box.

Any thoughts?

i'm running 0.20.5

Thanks

--  
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 29, 2013, 11:12am UTC](https://discuss.elastic.co/t/reroute-has-no-effect/11361/2 "2013-03-29T11:12:57Z")

</div>

Usually if it is going to move , it shows violet colour in head for that  
shard.  
Do you see it.  
Also please elaborate on the problem. What exactly are you trying to  
achieve.

Thanks  
Vineeth

On Thu, Mar 28, 2013 at 11:20 PM, Todd Gruben [tgruben@gmail.com](mailto:tgruben@gmail.com) wrote:

> I am attempting to move a shard from one node to another with the  
> following command
> 
> curl -XPOST 'localhost:9200/\_cluster/reroute' -d '{  
> "commands" : [  
> {"move" : {"index" : "segments\_index\_25", "shard" : 2, "from\_node"  
> : "ZFjxfFmTT96tGO\_AgMl5FA", "to\_node" : "ijc\_elPKTPyp97dY6AfLEQ"}}  
> ]  
> }'
> 
> It appears to start the process and I receive an "OK" after the  
> submission, it is indicated on elasticsearch-head that it is moving. but  
> the shard never ends up on the destination node and the shard returns back  
> to green and normal on the first node. I see nothing in the log files to  
> indicate an error, so I am wondring if i am missing something.
> 
> I am wanting to move this shard to a larger more powerful box.
> 
> Any thoughts?
> 
> i'm running 0.20.5
> 
> Thanks
> 
> --  
> 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:** ![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 29, 2013, 11:49am UTC](https://discuss.elastic.co/t/reroute-has-no-effect/11361/3 "2013-03-29T11:49:46Z")

</div>

> It appears to start the process and I receive an "OK" after the  
> submission, it is indicated on elasticsearch-head that it is moving.  
> but the shard never ends up on the destination node and the shard  
> returns back to green and normal on the first node. I see nothing in  
> the log files to indicate an error, so I am wondring if i am missing  
> something.

It may be that your move is causing an unbalanced cluster, so ES fixes  
it by rebalancing (which might cancel your request).

It may make more sense in your case to use rack awareness to allocate  
that index with the more powerful box.

Read the section on "Shard allocation awareness" here:

> **[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:** ![Todd\_Gruben](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@Todd\_Gruben](https://discuss.elastic.co/u/Todd_Gruben)\
**Post date:** [April 1, 2013, 3:25pm UTC](https://discuss.elastic.co/t/reroute-has-no-effect/11361/4 "2013-04-01T15:25:08Z")

</div>

I does show violet for a small period of time. I am thinking that for some  
reason I must "move" another shard off that server, in essence swap the big  
shard for the small.

On Friday, March 29, 2013 6:12:57 AM UTC-5, Vineeth Mohan wrote:

> Usually if it is going to move , it shows violet colour in head for that  
> shard.  
> Do you see it.  
> Also please elaborate on the problem. What exactly are you trying to  
> achieve.
> 
> Thanks  
> Vineeth
> 
> On Thu, Mar 28, 2013 at 11:20 PM, Todd Gruben \<[tgr...@gmail.com](mailto:tgr...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > I am attempting to move a shard from one node to another with the  
> > following command
> > 
> > curl -XPOST 'localhost:9200/\_cluster/reroute' -d '{  
> > "commands" : [  
> > {"move" : {"index" : "segments\_index\_25", "shard" : 2,  
> > "from\_node" : "ZFjxfFmTT96tGO\_AgMl5FA", "to\_node" :  
> > "ijc\_elPKTPyp97dY6AfLEQ"}}  
> > ]  
> > }'
> > 
> > It appears to start the process and I receive an "OK" after the  
> > submission, it is indicated on elasticsearch-head that it is moving. but  
> > the shard never ends up on the destination node and the shard returns back  
> > to green and normal on the first node. I see nothing in the log files to  
> > indicate an error, so I am wondring if i am missing something.
> > 
> > I am wanting to move this shard to a larger more powerful box.
> > 
> > Any thoughts?
> > 
> > i'm running 0.20.5
> > 
> > Thanks
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > 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-has-no-effect/11361/5 "2017-07-06T02:43:22Z")

</div>


