# Shard reside and Replica reside Logic In elasticsearch Cluster

**URL:** <https://discuss.elastic.co/t/shard-reside-and-replica-reside-logic-in-elasticsearch-cluster/69297>\
**Category:** Elasticsearch\
**Created:** [December 16, 2016, 1:55pm UTC](https://discuss.elastic.co/t/shard-reside-and-replica-reside-logic-in-elasticsearch-cluster/69297 "2016-12-16T13:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [December 16, 2016, 1:55pm UTC](https://discuss.elastic.co/t/shard-reside-and-replica-reside-logic-in-elasticsearch-cluster/69297/1 "2016-12-16T13:55:08Z")

</div>

Hi Everyone,

Can anyone please explain how the shards and indices are distributed for the particular index......... Is there any logic for that?..

In most of the documents it is like elastic-search default feature of elasticsearch ......  
Lets say i have an index ...Default it have 5 shards and 10replicas....We have a cluster with 4 nodes.....And in our cluster all the replicas are on same node....and 5 shards are in remaining 3 nodes..

Can anyone please explain how the shard residing and replicas take place

Thanks in advance  
Balu

---

<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 16, 2016, 2:32pm UTC](https://discuss.elastic.co/t/shard-reside-and-replica-reside-logic-in-elasticsearch-cluster/69297/2 "2016-12-16T14:32:15Z")

</div>

Having replicas on the same node does not really matter.  
Why do you think it's important?

---

<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:** [January 13, 2017, 2:32pm UTC](https://discuss.elastic.co/t/shard-reside-and-replica-reside-logic-in-elasticsearch-cluster/69297/3 "2017-01-13T14:32:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
