# ILM helm, indexes are bigger the 50g

**URL:** <https://discuss.elastic.co/t/ilm-helm-indexes-are-bigger-the-50g/309390>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 12, 2022, 9:12am UTC](https://discuss.elastic.co/t/ilm-helm-indexes-are-bigger-the-50g/309390 "2022-07-12T09:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alon\_carmelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alon_carmelly/32/118670_2.png) [@alon\_carmelly](https://discuss.elastic.co/u/alon_carmelly)\
**Post date:** [July 12, 2022, 9:12am UTC](https://discuss.elastic.co/t/ilm-helm-indexes-are-bigger-the-50g/309390/1 "2022-07-12T09:12:48Z")

</div>

I thought I set the ILM correctly but indexs keep getting bigger then 50g

this is the policy I have,  
what am I doing wrong ?

```auto
PUT _ilm/policy/30-days-default_alonzon
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_age": "30d",
            "max_primary_shard_size": "50gb"
          }
        }
      },
      "warm": {
        "min_age": "6d",
        "actions": {
          "shrink": {
            "number_of_shards": 1
          },
          "forcemerge": {
            "max_num_segments": 1
          }
        }
      },
      "cold": {
        "min_age": "40d",
        "actions": {
          "set_priority": {
            "priority": 0
          }
        }
      },
      "delete": {
        "min_age": "40d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    },
    "_meta": {
      "managed": true,
      "description": "built-in ILM policy using the hot and warm phases with a retention of 30 days"
    }
  }
}

```

---

<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 12, 2022, 9:15am UTC](https://discuss.elastic.co/t/ilm-helm-indexes-are-bigger-the-50g/309390/2 "2022-07-12T09:15:46Z")

</div>

Please show index stats, e.g. using the cat indices API. It may also help if you show the index settings and version of Elasticsearch you are on.

---

<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 9, 2022, 9:16am UTC](https://discuss.elastic.co/t/ilm-helm-indexes-are-bigger-the-50g/309390/3 "2022-08-09T09:16:01Z")

</div>

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