# Recommanded shards size includes replicas or not?

**URL:** https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203
**Category:** Elasticsearch
**Created:** [September 27, 2021, 8:20am UTC](https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203 "2021-09-27T08:20:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [September 27, 2021, 8:20am UTC](https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203/1 "2021-09-27T08:20:43Z")

</div>

Hello,

Documentation says : _Aim for shard sizes between 10GB and 50GB_ but does not specifiy if it concerns only primary or primary AND replicas

I mean, I have an index of 200GB and wants 1 replica. So total index size will be 400GB.

Formula will be 400GB/50 or 200GB/50 ?

In the first case, I would set 4 primary shards and 1 replica (8 shards per inex), and in the second case I would set 2 primaries and 1 replica (4 shards per index)

Thanks !

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [September 27, 2021, 8:22am UTC](https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203/2 "2021-09-27T08:22:43Z")

</div>

It is the size of each individual shard so you would base this on primary shard size.

---

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [September 27, 2021, 9:03am UTC](https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203/3 "2021-09-27T09:03:19Z")

</div>

Perfect. Thanks @Christian_Dahlqvist

---

<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: [October 25, 2021, 9:03am UTC](https://discuss.elastic.co/t/recommanded-shards-size-includes-replicas-or-not/285203/4 "2021-10-25T09:03:53Z")

</div>

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