# Effects of changing ILM policy

**URL:** <https://discuss.elastic.co/t/effects-of-changing-ilm-policy/329516>\
**Category:** Elasticsearch\
**Created:** [April 6, 2023, 1:09pm UTC](https://discuss.elastic.co/t/effects-of-changing-ilm-policy/329516 "2023-04-06T13:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![india](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@india](https://discuss.elastic.co/u/india)\
**Post date:** [April 6, 2023, 1:09pm UTC](https://discuss.elastic.co/t/effects-of-changing-ilm-policy/329516/1 "2023-04-06T13:09:15Z")

</div>

I am using Elasticsearch 7.17.0.  
I have configured ILM policy in following way:

```auto
  "post_policy" : {
    "version" : 1,
    "modified_date" : "2021-07-26T19:20:56.981Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "20gb"
            }
          }
        },
        "delete" : {
          "min_age" : "730d",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    },

```

I have index template that has this policy applied. So far, there is only one index created and its size iz 7GB.  
I am planning to change rollover max\_size to 10GB. Will that change take affect on existing index, will be rolled over when it reaches 10GB?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 6, 2023, 3:54pm UTC](https://discuss.elastic.co/t/effects-of-changing-ilm-policy/329516/2 "2023-04-06T15:54:04Z")

</div>

It should, assuming everything else is working correctly.  
If not you can manually roll it over with

`POST datastream-or-writealias/_rollover`

---

<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:** [May 4, 2023, 3:54pm UTC](https://discuss.elastic.co/t/effects-of-changing-ilm-policy/329516/3 "2023-05-04T15:54:36Z")

</div>

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