# Elastic index is bigger than expected

**URL:** <https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029>\
**Category:** Elastic Search\
**Created:** [July 30, 2024, 7:39am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029 "2024-07-30T07:39:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eeijlar](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeijlar](https://discuss.elastic.co/u/eeijlar)\
**Post date:** [July 30, 2024, 7:39am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029/1 "2024-07-30T07:39:13Z")

</div>

We have an ILM policy which states that an index should roll over after 50GB

However our indices are all in excess of 300GB

This doesn't make sense...

---

<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:** [July 30, 2024, 7:51am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029/2 "2024-07-30T07:51:37Z")

</div>

How many primary and replica shards does the index have? ILM rollover size is generally based on the primary shard size and not the total size of the index, so it would help to also share the definition of your ILM policy.

---

<div class="post-metadata">

**Author:** ![eeijlar](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeijlar](https://discuss.elastic.co/u/eeijlar)\
**Post date:** [July 30, 2024, 7:58am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029/3 "2024-07-30T07:58:35Z")

</div>

Hi @Christian_Dahlqvist ,

I am unable to upload the screenshots for some reason it keeps failing.. I will do a text version here:

Enable rollover is set to true  
Maximum primary shard size is not set  
Maximum age is 1 day  
Maximum documents is not set  
Maximum index size is 50GB

Our total index size for one index is 326GB, but they all seem to be around that size. We have 102GB of primaries, and 3 shards, unassigned shards is 0.

We have an alert under stack monitoring saying our average shard size is 55GB.

```auto
index prirep shard store
my-index-0.2024.08.01-100029 p 0 96

```

Note elastic version is 7.17.13

---

<div class="post-metadata">

**Author:** ![eeijlar](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@eeijlar](https://discuss.elastic.co/u/eeijlar)\
**Post date:** [July 30, 2024, 8:17am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029/4 "2024-07-30T08:17:33Z")

</div>

I think I figured it out. We are injecting data into the cluster using an elastic java client. It is manually creating indices and writing to them all simultaneously. I think this will invalidate the ILM.

Thanks for your reply @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:** [August 27, 2024, 8:18am UTC](https://discuss.elastic.co/t/elastic-index-is-bigger-than-expected/364029/5 "2024-08-27T08:18:26Z")

</div>

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