API to see the index repartition overs shards

Hi there,

The question is in the title.

Is there any API to see how is balanced a given index over nodes and shards
?

thanks

The cluster state API gives you all the information you are after. Which nodes are in play, indices, shards, and where they are allocated (broken down from an index/shard perspective - routing_table, and node perspective - routing_nodes): http://www.elasticsearch.org/guide/reference/api/admin-cluster-state.html.
On Tuesday, March 15, 2011 at 11:32 AM, Alexandre Heimburger wrote:

Hi there,

The question is in the title.

Is there any API to see how is balanced a given index over nodes and shards ?

thanks

yes I had a look at this one.

I'm sorry if my questions are not relevant but is there any
documentation about the meaning of each field. I understand most of
them but I'd like to be sure.

For example :

    "shards" : {
      "0" : [ {
        "state" : "STARTED",
        "primary" : true,
        "node" : "5XqO4B39RrmJr5WyUQlTHA",
        "relocating_node" : null,
        "shard" : 0,
        "index" : "devalexbk10"
      }, {
        "state" : "STARTED",
        "primary" : false,
        "node" : "Z3N-KZAoT0KtdqTgel2-tQ",
        "relocating_node" : null,
        "shard" : 0,
        "index" : "devalexbk10"
      } ],

I guess that the shards 0 is defined on node 5XqO4B39RrmJr5WyUQlTHA
(primary=true) and replicated on node Z3N-KZAoT0KtdqTgel2-tQ. Am I
right ?

how do I know if a given node

On 15 mar, 10:34, Shay Banon shay.ba...@elasticsearch.com wrote:

The cluster state API gives you all the information you are after. Which nodes are in play, indices, shards, and where they are allocated (broken down from an index/shard perspective - routing_table, and node perspective - routing_nodes):Elasticsearch Platform — Find real-time answers at scale | Elastic.....

On Tuesday, March 15, 2011 at 11:32 AM, Alexandre Heimburger wrote:

Hi there,

The question is in the title.

Is there any API to see how is balanced a given index over nodes and shards ?

thanks

On Tuesday, March 15, 2011 at 12:18 PM, alheim wrote:
yes I had a look at this one.

I'm sorry if my questions are not relevant but is there any
documentation about the meaning of each field. I understand most of
them but I'd like to be sure.

For example :

"shards" : {
"0" : [ {
"state" : "STARTED",
"primary" : true,
"node" : "5XqO4B39RrmJr5WyUQlTHA",
"relocating_node" : null,
"shard" : 0,
"index" : "devalexbk10"
}, {
"state" : "STARTED",
"primary" : false,
"node" : "Z3N-KZAoT0KtdqTgel2-tQ",
"relocating_node" : null,
"shard" : 0,
"index" : "devalexbk10"
} ],

I guess that the shards 0 is defined on node 5XqO4B39RrmJr5WyUQlTHA
(primary=true) and replicated on node Z3N-KZAoT0KtdqTgel2-tQ. Am I
right ?
Right.

how do I know if a given node
?. If I can guess the question, then the nodes info is also in the response, mapping node id to things like IP and names.

On 15 mar, 10:34, Shay Banon shay.ba...@elasticsearch.com wrote:

The cluster state API gives you all the information you are after. Which nodes are in play, indices, shards, and where they are allocated (broken down from an index/shard perspective - routing_table, and node perspective - routing_nodes):Elasticsearch Platform — Find real-time answers at scale | Elastic.....

On Tuesday, March 15, 2011 at 11:32 AM, Alexandre Heimburger wrote:

Hi there,

The question is in the title.

Is there any API to see how is balanced a given index over nodes and shards ?

thanks