Skip to content

ILM: Changing a policy does not have desired effect. #48431

Closed
@jordansissel

Description

@jordansissel

Tested on Elasticsearch 7.3.0

We ran out of disk today. We noticed that Curator for some reason was not deleting indices, possibly because it detects ILM and ignores indices with ILM enabled.

I updated our existing ILM policy to add:

      "delete": {
        "min_age": "30d",
        "actions": {
          "delete": {}
        }
      }

This policy change never takes effect due to some behavior in ILM that I am not understanding.

If index foo has lifecycle policy bar and bar policy is updated to say "Delete when older than 30 days", then foo should be deleted when it is older than 30 days. If foo is already older than 30 days, then it should be deleted by ILM.

Without this, attempting to modify policy when there are hundreds of indices leaves us without much obvious recourse besides doing it ourselves with scripting or with curator.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions