Shard distribution between nodes

I have a question about sharding.

I have a 4 node cluster ( 12 shards , 1 replica ) .
I look at it in Head plugin and what is see is this unsyncronized picture
of shards. Can someone explain me why do I see what i see here ? Why the
shards are not equaly distributed between nodes ?

https://lh4.googleusercontent.com/--YdPW7cUnGU/ULdW2EwYDRI/AAAAAAAALdI/CQEyENfIY6I/s1600/Capture.JPG

--

Hello Roman,

Can you share the picture?

Also, if you use multiple indices, ES by default just tries to balance the
total number of shards. So you might get most shards of an index on one
node, most shards of another index on another node and so on.

You can make things even by using shard allocation settings:
http://www.elasticsearch.org/guide/reference/index-modules/allocation.html

especially index.routing.allocation.total_shards_per_node.

Best regards,
Radu

http://sematext.com/ -- ElasticSearch -- Solr -- Lucene

On Thu, Nov 29, 2012 at 2:38 PM, Roman Kournjaev kournjaev@gmail.comwrote:

I have a question about sharding.

I have a 4 node cluster ( 12 shards , 1 replica ) .
I look at it in Head plugin and what is see is this unsyncronized picture
of shards. Can someone explain me why do I see what i see here ? Why the
shards are not equaly distributed between nodes ?

https://lh4.googleusercontent.com/--YdPW7cUnGU/ULdW2EwYDRI/AAAAAAAALdI/CQEyENfIY6I/s1600/Capture.JPG

--

--