Effects of changing ILM policy

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

  "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?

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

POST datastream-or-writealias/_rollover

1 Like

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