# ES shard placement on different nodes

**URL:** https://discuss.elastic.co/t/es-shard-placement-on-different-nodes/21285
**Category:** Elasticsearch
**Created:** [December 17, 2014, 1:29am UTC](https://discuss.elastic.co/t/es-shard-placement-on-different-nodes/21285 "2014-12-17T01:29:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nidhi\_Gupta](https://avatars.discourse-cdn.com/v4/letter/n/b9e5f3/32.png) [@Nidhi\_Gupta](https://discuss.elastic.co/u/Nidhi_Gupta)
#### Post date: [December 17, 2014, 1:29am UTC](https://discuss.elastic.co/t/es-shard-placement-on-different-nodes/21285/1 "2014-12-17T01:29:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 17, 2014, 1:48am UTC](https://discuss.elastic.co/t/es-shard-placement-on-different-nodes/21285/2 "2014-12-17T01:48:56Z")

</div>

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](mailto: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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/f657b52a-5ddc-455f-8ea4-fb8e67140430%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/E6A50622-3DD8-4FF2-8F06-5271C5D30DEA%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:43am UTC](https://discuss.elastic.co/t/es-shard-placement-on-different-nodes/21285/3 "2017-07-06T00:43:21Z")

</div>


