# Index size and docs count are not proportional

**URL:** <https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045>\
**Category:** Elasticsearch\
**Created:** [May 7, 2019, 6:39pm UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045 "2019-05-07T18:39:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Huo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_huo/32/45765_2.png) [@Alex\_Huo](https://discuss.elastic.co/u/Alex_Huo)\
**Post date:** [May 7, 2019, 6:39pm UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045/1 "2019-05-07T18:39:26Z")

</div>

Hi,  
I'm trying to use index size to throttle the number of docs going into ES. However, I found that docs.count and store.size are not proportional. With the same template, the index with more docs.count has smaller store.size.

```
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open log-2019-04-26-original UBM3FZncT_K3g7JKoL2n-g 1 1 50 0 37.2kb 37.2kb
yellow open log-2019-02-14-original M9yTYemLS-iYm8qReH9CHA 1 1 38 0 41.9kb 41.9kb
yellow open log-2019-02-13-original QaQ1R0mqTsKvBMnL_F3hiA 1 1 221 0 22.8kb 22.8kb

```

I also ran the \_forcemerge, nothing changes.  
Can anyone explain why? Big 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:** [May 8, 2019, 6:02am UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045/2 "2019-05-08T06:02:22Z")

</div>

Did you run the forcemerge while specifying a single segment?

---

<div class="post-metadata">

**Author:** ![Alex\_Huo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_huo/32/45765_2.png) [@Alex\_Huo](https://discuss.elastic.co/u/Alex_Huo)\
**Post date:** [May 9, 2019, 1:04am UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045/3 "2019-05-09T01:04:37Z")

</div>

No. I didn't find anything about specifying a single segment in the documents. I just run it without any parameter:  
POST /log-2019-04-26-original/\_forcemerge

---

<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:** [May 9, 2019, 5:15am UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045/4 "2019-05-09T05:15:06Z")

</div>

That does not necessarily do anything. Look at the example towards the end in the docs showing how to specify the number of segments. Then set this to 1. It might also help to have a larger amount of data.

---

<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 6, 2019, 5:17am UTC](https://discuss.elastic.co/t/index-size-and-docs-count-are-not-proportional/180045/5 "2019-06-06T05:17:46Z")

</div>

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