Hello!
Trying to understand ILM rollover. I created a test on elastic.co and follow the example on:
Tutorial: Automate rollover with ILM | Elasticsearch Guide [8.5] | Elastic
I set rollover on 10 documents. Now, when testing, the rollover never happens on 10 documents added to the Stream. It happens later (on 38 documents, or on 42 documents)...
The question is, how "flexible" is the rule about size, date frame, and document counts? When the ILM Gets triggered? Is there some rule about it?
Here are the ilm/explain:
{
"indices": {
".ds-timeseries-2022.11.30-000001": {
"index": ".ds-timeseries-2022.11.30-000001",
"managed": true,
"policy": "timeseries_policy",
"index_creation_date_millis": 1669821313078,
"time_since_index_creation": "6.24m",
"lifecycle_date_millis": 1669821313078,
"age": "6.24m",
"phase": "hot",
"phase_time_millis": 1669821313304,
"action": "rollover",
"action_time_millis": 1669821313504,
"step": "check-rollover-ready",
"step_time_millis": 1669821313504,
"phase_execution": {
"policy": "timeseries_policy",
"phase_definition": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 100
},
"rollover": {
"max_size": "50gb",
"max_primary_shard_size": "50gb",
"max_age": "30d",
"max_docs": 10
}
}
},
"version": 1,
"modified_date_in_millis": 1669820971268
}
}
}
}