We're using the following ILM-policy with success.
PUT _ilm/policy/technical
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 100
}
}
},
"warm": {
"min_age": "5d",
"actions": {
"allocate": {
"number_of_replicas": 1,
"include": {},
"exclude": {},
"require": {
"box_type": "warm"
}
},
"forcemerge": {
"max_num_segments": 1
},
"readonly": {},
"set_priority": {
"priority": 50
}
}
},
"cold": {
"min_age": "14d",
"actions": {
"allocate": {
"number_of_replicas": 0,
"include": {},
"exclude": {},
"require": {
"box_type": "warm"
}
},
"set_priority": {
"priority": 40
}
}
},
"delete": {
"min_age": "21d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
^ generated by ILM Web-UI
There's only one glitch in the plan: during cold-phase the replica-count isn't lowered to 0.
We tried to apply the changes via API and Web-UI -> settings were not stored.
We're using version 7.10.0
Is this a known bug or is this just not possible?