Hello everyone
I have problems with ILMs
My index doesn't move to from HOT Phase to DELETE Phase
this is my ilm policy which I expect to being rolled over either 30 days old or 15gb limit
{
"30d-rollover-50d-delete": {
"version": 4,
"modified_date": "2020-07-16T09:24:17.682Z",
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "15gb"
},
"set_priority": {
"priority": 100
}
}
},
"delete": {
"min_age": "50d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
},
"in_use_by": {
"indices": [
"my-index-000004",
"my-index-000005",
]
}
}
}
This is my index settings for my-index-000004
{
"indices": {
"my-index-000004": {
"index": "my-index-000004",
"managed": true,
"policy": "30d-rollover-50d-delete",
"index_creation_date_millis": 1726403363137, -> 2024-02-01 04:42:43 UTC
"time_since_index_creation": "53.95d",
"lifecycle_date_millis": 1728995963326,
"age": "23.95d",
"phase": "hot",
"phase_time_millis": 1726403363234,
"action": "complete",
"action_time_millis": 1728995963926,
"step": "complete",
"step_time_millis": 1728995963926,
"phase_execution": {
"policy": "30d-rollover-50d-delete",
"phase_definition": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "30d",
"min_docs": 1,
"max_primary_shard_docs": 200000000,
"max_size": "15gb"
},
"set_priority": {
"priority": 100
}
}
},
"version": 4,
"modified_date_in_millis": 1594891457682
}
}
}
}
This is my index settings for my-index-000005
{
"indices": {
"my-index-000005": {
"index": "my-index-000005",
"managed": true,
"policy": "30d-rollover-50d-delete",
"index_creation_date_millis": 1728995963321, -> 2024-03-18 04:32:43 UTC
"time_since_index_creation": "23.95d",
"lifecycle_date_millis": 1728995963321,
"age": "23.95d",
"phase": "hot",
"phase_time_millis": 1728995963726,
"action": "rollover",
"action_time_millis": 1728995964126,
"step": "check-rollover-ready",
"step_time_millis": 1728995964126,
"phase_execution": {
"policy": "30d-rollover-50d-delete",
"phase_definition": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_age": "30d",
"min_docs": 1,
"max_primary_shard_docs": 200000000,
"max_size": "15gb"
},
"set_priority": {
"priority": 100
}
}
},
"version": 4,
"modified_date_in_millis": 1594891457682
}
}
}
}
Sizes of my indices
index store.size
my-index-000005 103.5mb
my-index-000004 1.6gb
As you can see between index creation days there are 46 days
- Date 1: February 1, 2024 - > my-index-000004
- Date 2: March 18, 2024 -> my-index-000005
Why it doesn't roll over when it reaches 30 days ?
I also realized such problem in other ILMs for sizes as well but let's focus on one case only for now