# Does admin cluster reroute api work in vs 0.19.3?

**URL:** <https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583>\
**Category:** Elasticsearch\
**Created:** [June 28, 2013, 7:26pm UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583 "2013-06-28T19:26:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Amit](https://discuss.elastic.co/u/Amit)\
**Post date:** [June 28, 2013, 7:26pm UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583/1 "2013-06-28T19:26:27Z")

</div>

Hi All,

I am using es version 19.3 , config setting;

0 replica  
5 shards  
5 nodes

My cluster state show 3 unassigned shards and I am trying to assign these  
shards to different node.

[http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/](http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/)

but shard allocation to nodes does not happen; my request;

curl -XPOST '10.62.145.101:9200/\_cluster/reroute' -d '{"commands" : [  
{"allocate" : {"index" :  
"51c33c8d9a5cb0e4a498e94c ~~51c438855555b0e40a09137a~~ 1", shard" : 3, "node"  
: "Ltpf7fGHTrO0vq\_UJf2WSg" ,"allow\_primary":true } } ]}'

I do-not get any response when I call the above api.  
Also the cluster state remains same after the api call.

Thanks in advance for the advice.

Regards  
Amit

--  
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:** ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)\
**Post date:** [June 28, 2013, 7:29pm UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583/2 "2013-06-28T19:29:12Z")

</div>

Hello!

I think it was introduced in 0.19.10 and 0.20 ([https://github.com/elasticsearch/elasticsearch/issues/2256](https://github.com/elasticsearch/elasticsearch/issues/2256))

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - ElasticSearch_

Hi All,

I am using es version 19.3 , config setting;

0 replica

5 shards

5 nodes

My cluster state show 3 unassigned shards and I am trying to assign these shards to different node.

[http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/](http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/)

but shard allocation to nodes does not happen; my request;

curl -XPOST '10.62.145.101:9200/\_cluster/reroute' -d '{"commands" : [{"allocate" : {"index" : "51c33c8d9a5cb0e4a498e94c ~~51c438855555b0e40a09137a~~ 1", shard" : 3, "node" : "Ltpf7fGHTrO0vq\_UJf2WSg" ,"allow\_primary":true } }]}'

I do-not get any response when I call the above api.

Also the cluster state remains same after the api call.

Thanks in advance for the advice.

Regards

Amit

--

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:** ![Amit](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Amit](https://discuss.elastic.co/u/Amit)\
**Post date:** [June 28, 2013, 7:41pm UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583/3 "2013-06-28T19:41:56Z")

</div>

Thanks Rafal,

You saved my day.. I debugged at lot to find out as to why the re-routing  
is not happening.

I will try to upgrade my es version.

Regards  
Amit

On Sat, Jun 29, 2013 at 12:59 AM, Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl) wrote:

> Hello!
> 
> I think it was introduced in 0.19.10 and 0.20 (  
> [Cluster Reroute API: Allow to specify allocation commands · Issue #2256 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2256))
> 
> \*--  
> Regards,  
> Rafał Kuć  
> Sematext :: _[http://sematext.com/](http://sematext.com/)_ :: Solr - Lucene - Elasticsearch
> 
> - 
> 
> Hi All,
> 
> I am using es version 19.3 , config setting;
> 
> 0 replica  
> 5 shards  
> 5 nodes
> 
> My cluster state show 3 unassigned shards and I am trying to assign these  
> shards to different node.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/)
> 
> but shard allocation to nodes does not happen; my request;
> 
> curl -XPOST '10.62.145.101:9200/\_cluster/reroute' -d '{"commands" : [  
> {"allocate" : {"index" :  
> "51c33c8d9a5cb0e4a498e94c ~~51c438855555b0e40a09137a~~ 1", shard" : 3, "node"  
> : "Ltpf7fGHTrO0vq\_UJf2WSg" ,"allow\_primary":true } } ]}'
> 
> I do-not get any response when I call the above api.  
> Also the cluster state remains same after the api call.
> 
> Thanks in advance for the advice.
> 
> Regards  
> Amit
> 
> --  
> 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).

--  
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:** ![Amit](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Amit](https://discuss.elastic.co/u/Amit)\
**Post date:** [June 28, 2013, 8:16pm UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583/4 "2013-06-28T20:16:18Z")

</div>

Hi Rafal,

I could not get a chance to try this one scenarion.

Scenario-  
If data is getting indexed and one of the node goes out of network. And es  
will throw shard not found error but will there be any index data loss?

I mean since the master will not be able to ping the out of network node,  
the document that were supposed to be send to that particular node will  
they be directed to other nodes in network node.

so when the other node comes in cluster, the index has all the  
document/indexed data?

Thanks  
Amit

On Sat, Jun 29, 2013 at 1:11 AM, Amit Singh [amitsingh.kec@gmail.com](mailto:amitsingh.kec@gmail.com) wrote:

> Thanks Rafal,
> 
> You saved my day.. I debugged at lot to find out as to why the re-routing  
> is not happening.
> 
> I will try to upgrade my es version.
> 
> Regards  
> Amit
> 
> On Sat, Jun 29, 2013 at 12:59 AM, Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl) wrote:
> 
> > Hello!
> > 
> > I think it was introduced in 0.19.10 and 0.20 (  
> > [Cluster Reroute API: Allow to specify allocation commands · Issue #2256 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/2256))
> > 
> > \*--  
> > Regards,  
> > Rafał Kuć  
> > Sematext :: _[http://sematext.com/](http://sematext.com/)_ :: Solr - Lucene - Elasticsearch
> > 
> > - 
> > 
> > Hi All,
> > 
> > I am using es version 19.3 , config setting;
> > 
> > 0 replica  
> > 5 shards  
> > 5 nodes
> > 
> > My cluster state show 3 unassigned shards and I am trying to assign these  
> > shards to different node.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-reroute/)
> > 
> > but shard allocation to nodes does not happen; my request;
> > 
> > curl -XPOST '10.62.145.101:9200/\_cluster/reroute' -d '{"commands" : [  
> > {"allocate" : {"index" :  
> > "51c33c8d9a5cb0e4a498e94c ~~51c438855555b0e40a09137a~~ 1", shard" : 3, "node"  
> > : "Ltpf7fGHTrO0vq\_UJf2WSg" ,"allow\_primary":true } } ]}'
> > 
> > I do-not get any response when I call the above api.  
> > Also the cluster state remains same after the api call.
> > 
> > Thanks in advance for the advice.
> > 
> > Regards  
> > Amit
> > 
> > --  
> > 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).

--  
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:28am UTC](https://discuss.elastic.co/t/does-admin-cluster-reroute-api-work-in-vs-0-19-3/12583/5 "2017-07-06T02:28:57Z")

</div>


