# Index, Shard and Raplica mapping

**URL:** <https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769>\
**Category:** Elasticsearch\
**Created:** [May 5, 2017, 6:42pm UTC](https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769 "2017-05-05T18:42:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonal410](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonal410/32/17825_2.png) [@sonal410](https://discuss.elastic.co/u/sonal410)\
**Post date:** [May 5, 2017, 6:42pm UTC](https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769/1 "2017-05-05T18:42:07Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/\_basic\_concepts.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_basic_concepts.html)

In the basic concepts, it is mentioned about the number of default 5 shared and 1 replica get created for an index, and if their are 2 nodes in an index, it creates 5 shared and 5 replica. What combination does all 5 replica have?

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/5/452457ebdc057d89321ad19c2584f9321d947a60.jpg)

---

<div class="post-metadata">

**Author:** ![sonal410](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonal410/32/17825_2.png) [@sonal410](https://discuss.elastic.co/u/sonal410)\
**Post date:** [May 5, 2017, 6:43pm UTC](https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769/2 "2017-05-05T18:43:40Z")

</div>

And also how the replica will increase if I have 3 nodes

---

<div class="post-metadata">

**Author:** ![fortikeco](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fortikeco](https://discuss.elastic.co/u/fortikeco)\
**Post date:** [May 5, 2017, 9:01pm UTC](https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769/3 "2017-05-05T21:01:55Z")

</div>

You set the number of shards and replicas per index. If you set an index to have 5 shards and 1 recplica, meaning that for every primary shard there is 1 replica shard so in total you will have 5 replicas. Now if you have 2 nodes, the 5 primary and 5 replicas will be distributed around the 2 nodes. If you have 3 nodes, the same 5 primary and 5 replicas shards will be distributed evenly around the 3 nodes.

---

<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:** [June 2, 2017, 9:04pm UTC](https://discuss.elastic.co/t/index-shard-and-raplica-mapping/84769/4 "2017-06-02T21:04:09Z")

</div>

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