-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add an ILM action to ensure a snapshot contains the index prior to being deleted #45067
Copy link
Copy link
Closed
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>feature
Description
It's a common pattern with data to go through the lifecycle of an index, and then take a snapshot immediately prior to the index being deleted. It would be great if we could add functionality similar with this by combining parts of the SLM and ILM features in ES.
For example, if an index had a policy like:
{
"policy": {
"phases": {
"delete": {
"min_age": "15d",
"actions": {
"snapshot": {
"policy": "my-slm-policy"
},
"delete": {}
}
}
}
}
}ILM would wait until the index entered the delete phase, it would then wait until a snapshot from the my-slm-policy SLM policy had been taken (it would not manually kick off a snapshot, since that could potentially create scores of unwanted snapshots), and then it would delete the index.
/cc @yaronp68 as you asked me to open an issue for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Data Management/ILM+SLMDO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.>feature
Type
Fields
Give feedbackNo fields configured for issues without a type.