# Is number of documents in an Index is proportional to store.size or pri.store.size?

**URL:** <https://discuss.elastic.co/t/is-number-of-documents-in-an-index-is-proportional-to-store-size-or-pri-store-size/324496>\
**Category:** Elasticsearch\
**Created:** [February 2, 2023, 3:04am UTC](https://discuss.elastic.co/t/is-number-of-documents-in-an-index-is-proportional-to-store-size-or-pri-store-size/324496 "2023-02-02T03:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikasp/32/90872_2.png) [@vikasp](https://discuss.elastic.co/u/vikasp)\
**Post date:** [February 2, 2023, 3:04am UTC](https://discuss.elastic.co/t/is-number-of-documents-in-an-index-is-proportional-to-store-size-or-pri-store-size/324496/1 "2023-02-02T03:04:51Z")

</div>

`GET /<index>/_count` gives me the total number of documents in an index.  
`GET /_cat/indices/<index>` gives me both total documents, store.size and pri.store.size.  
Say if I have an index with 1 primary and 1 replica.

say my store.size is 600gb, pri.store.size is 300gb. and total number of documents is 9000.

If I am trying to get an estimation of number of documents to storage in my cluster.  
Should I consider 9000/300 as the average document size or 9000/600 as the average document size.

I am guessing it should be the pri.store.size. But I would like to get a confirmation.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 2, 2023, 3:06am UTC](https://discuss.elastic.co/t/is-number-of-documents-in-an-index-is-proportional-to-store-size-or-pri-store-size/324496/2 "2023-02-02T03:06:12Z")

</div>

Yes, it's the `pri.store.size` as `store.size` includes replicas.

---

<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:** [March 2, 2023, 3:06am UTC](https://discuss.elastic.co/t/is-number-of-documents-in-an-index-is-proportional-to-store-size-or-pri-store-size/324496/3 "2023-03-02T03:06:45Z")

</div>

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