ES shard placement on different nodes

Hi,
I have multi index ES cluster. I read ES tries to equally distributes the
shards on different nodes.
Question :
ES tries the equal distribution across all nodes of primary+replica shards
per index or primary shards per index and then distribute replica shards
per index?
so its it possible that all primary shards may end up on the same node?

Thanks,
Nidhi

--
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/f657b52a-5ddc-455f-8ea4-fb8e67140430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes it's possible but you should not be afraid of this.
At the end, both primary and replicas will do the same "index"/"search" operation.

HTH

David

Le 17 déc. 2014 à 02:29, Nidhi Gupta gupta.nidhi06@gmail.com a écrit :

Hi,
I have multi index ES cluster. I read ES tries to equally distributes the shards on different nodes.
Question :
ES tries the equal distribution across all nodes of primary+replica shards per index or primary shards per index and then distribute replica shards per index?
so its it possible that all primary shards may end up on the same node?

Thanks,
Nidhi

--
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/f657b52a-5ddc-455f-8ea4-fb8e67140430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/E6A50622-3DD8-4FF2-8F06-5271C5D30DEA%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.