Shard allocation per node

Hi,
What is the rule for primary shard allocation for single index?

I created one index with 9 primary and 0 replica shards.
Elasticsearch allocated 5 primary shards on ES01 server (the node with
least storage available) and 4 more shards on different nodes.

I have 9 servers. For this index only 5 servers are in use.

I don't think this is a correct behavior .

The free space is pretty much even on every host, except ES01 (i still
don't understand why), and i did't hit any hi/low watermarks.

Any idea what is happening here ?

Georgi

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2d5f1140-cb10-4ac4-8bd7-2a41433e61f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.