# ILM my index is not doing rollover properly

**URL:** <https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 10, 2021, 2:13pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334 "2021-07-10T14:13:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daud\_Ahmed1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daud_ahmed1/32/86679_2.png) [@Daud\_Ahmed1](https://discuss.elastic.co/u/Daud_Ahmed1)\
**Post date:** [July 10, 2021, 2:13pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/1 "2021-07-10T14:13:43Z")

</div>

Below is my ILM policy

```auto
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_age": "30d",
            "max_size": "50gb"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "warm": {
        "actions": {
          "forcemerge": {
            "max_num_segments": 1
          },
          "set_priority": {
            "priority": 50
          },
          "shrink": {
            "number_of_shards": 1
          }
        }
      },
      "delete": {
        "min_age": "330d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}

```

I assigned it the index template successfully. But even though the index exceeds it's size to more than 50 GB but it is still not rolling over to the the warm phase. Instead presisting in the same state. Can somone tell me what's wrong here.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/1/31b97311c11b3ad81aceccf1dc1f0e05902d0abe.png)

---

<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 10, 2021, 2:15pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/2 "2021-07-10T14:15:38Z")

</div>

The size limit refers to the size of the primary shards and since you have a replica configured you have not yet reached it.

---

<div class="post-metadata">

**Author:** ![Daud\_Ahmed1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daud_ahmed1/32/86679_2.png) [@Daud\_Ahmed1](https://discuss.elastic.co/u/Daud_Ahmed1)\
**Post date:** [July 10, 2021, 2:17pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/3 "2021-07-10T14:17:23Z")

</div>

This size here 59 GB is equal to primary shards size + replica size?

---

<div class="post-metadata">

**Author:** ![Daud\_Ahmed1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daud_ahmed1/32/86679_2.png) [@Daud\_Ahmed1](https://discuss.elastic.co/u/Daud_Ahmed1)\
**Post date:** [July 10, 2021, 2:18pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/4 "2021-07-10T14:18:28Z")

</div>

How can I see the primary shards size @Christian_Dahlqvist ?

---

<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 10, 2021, 2:29pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/5 "2021-07-10T14:29:07Z")

</div>

You can use the `_cat/shards` API but as you have one replica it should be close half the total size reported in the UI.

---

<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 7, 2021, 2:29pm UTC](https://discuss.elastic.co/t/ilm-my-index-is-not-doing-rollover-properly/278334/6 "2021-08-07T14:29:52Z")

</div>

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