# Documents distributions across shards

**URL:** https://discuss.elastic.co/t/documents-distributions-across-shards/200137
**Category:** Elasticsearch
**Created:** [September 19, 2019, 7:26am UTC](https://discuss.elastic.co/t/documents-distributions-across-shards/200137 "2019-09-19T07:26:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)
#### Post date: [September 19, 2019, 7:26am UTC](https://discuss.elastic.co/t/documents-distributions-across-shards/200137/1 "2019-09-19T07:26:44Z")

</div>

say there are 99 documents and we have 3 shards for an index.

is it sure that all the 3 shards are going to have 33 documents each?

thanks in advance?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [September 19, 2019, 1:36pm UTC](https://discuss.elastic.co/t/documents-distributions-across-shards/200137/2 "2019-09-19T13:36:24Z")

</div>

Hey,

no, there is no perfect balancing, so you will have a slight deviation from that perfect case. The idea is, that this will be roughly the case due to the use of using a Murmur3 hash on the id.

--Alex

---

<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 17, 2019, 1:36pm UTC](https://discuss.elastic.co/t/documents-distributions-across-shards/200137/3 "2019-10-17T13:36:30Z")

</div>

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