Does admin cluster reroute api work in vs 0.19.3?

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/

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

curl -XPOST '10.62.145.101:9200/_cluster/reroute' -d '{"commands" : [
{"allocate" : {"index" :
"51c33c8d9a5cb0e4a498e94c51c438855555b0e40a09137a1", 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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello!

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

--

Regards,

Rafał Kuć

Sematext :: 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/

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

curl -XPOST '10.62.145.101:9200/_cluster/reroute' -d '{"commands" : [ {"allocate" : {"index" : "51c33c8d9a5cb0e4a498e94c51c438855555b0e40a09137a1", 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.

For more options, visit https://groups.google.com/groups/opt_out.

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 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)

*--
Regards,
Rafał Kuć
Sematext :: 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

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

curl -XPOST '10.62.145.101:9200/_cluster/reroute' -d '{"commands" : [
{"allocate" : {"index" :
"51c33c8d9a5cb0e4a498e94c51c438855555b0e40a09137a1", 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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 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 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)

*--
Regards,
Rafał Kuć
Sematext :: 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

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

curl -XPOST '10.62.145.101:9200/_cluster/reroute' -d '{"commands" : [
{"allocate" : {"index" :
"51c33c8d9a5cb0e4a498e94c51c438855555b0e40a09137a1", 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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.