Delete Phase Not Actioned

Hi there,

I have an ILM configured with the following settings

PUT _ilm/policy/cwl-abc-policy
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_primary_shard_size": "50gb",
            "max_age": "1d"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        "min_age": "7d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}

{
  "indices" : {
    "cwl-abc-2022.08.15-0001" : {
      "index" : "cwl-abc-2022.08.15-0001",
      "managed" : true,
      "policy" : "cwl-abc-policy",
      "lifecycle_date_millis" : 1660603797413,
      "age" : "62.28d",
      "phase" : "hot",
      "phase_time_millis" : 1665984792182,
      "action" : "rollover",
      "action_time_millis" : 1660603797881,
      "step" : "check-rollover-ready",
      "step_time_millis" : 1665984792182,
      "is_auto_retryable_error" : true,
      "failed_step_retry_count" : 4456,
      "phase_execution" : {
        "policy" : "cwl-abc-policy",
        "phase_definition" : {
          "min_age" : "0ms",
          "actions" : {
            "set_priority" : {
              "priority" : 100
            },
            "rollover" : {
              "max_primary_shard_size" : "50gb",
              "max_age" : "1d"
            }
          }
        },
        "version" : 2,
        "modified_date_in_millis" : 1657711348302
      }
    }
  }
}

The indexes are not being deleted though, here is a sample of an index that still shows up. The age is 62 days.

Is there something I am missing in my setup perhaps?

Thanks

Can you do an explain on the index policy?

Thanks, the first part above is the Index Lifecycle policy and then the second one is the explain on one of the indexes. Not sure if I am missing any other info you need?

Here is the explain of the related index template

{
  "template": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": "cwl-abc-policy",
          "rollover_alias": "cwl-abc"
        },
        "number_of_shards": "3",
        "number_of_replicas": "0"
      }
    },
    "aliases": {},
    "mappings": {}
  }
}

Thanks, just checking if I have provided all the info you require?

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