-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add searchable snapshots actions to ILM #50806
Comments
Pinging @elastic/es-core-features (:Core/Features/ILM+SLM) |
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
Some things to consider:
@DaveCTurner are two repositories always required? Is there a way to do it with a single repository, or should we plan on specifying both repositories in the ILM action configuration? |
I am inclined to go with the warm phase; @zuketo @matt-davis-elastic any other thoughts from the product side?
I would say yes delete the underlying snapshot by default but permit opting out.
Yes, I guess this is how we handle the Shrink step too?
Yes, for the foreseeable future, although I recognise that this isn't the best UX. This follows in the path of certain other features that also work by wrapping repositories around each other (e.g. source-only snapshots). |
Hi @DaveCTurner I'm curious on why the warm phase? I agree with it, just curious on your thoughts? Besides the standard time progression use case of data into a searchable snapshot with ILM, there is a less popular use case of getting data into a searchable snapshot as quickly as possible, this could be part of a migration effort, or writing directly to an "archive". I don't think this use case needs ILM, I just want to note it as a potential use case here. Even with this use case and converting to a snapshot in the warm phase, the user could configure a very brief hot phase and still use ILM. |
I assumed we'd want it in the |
I expect to achieve performance good enough to make it worth having these things available in the warm phase, and there will be a few other benefits over "standard" warm indices too. |
I'm going to close this now since @andreidan's PR was merged, and the searchable snapshot work was merged to master. |
Today, here is how to turn an index into a searchable snapshot on the
feature/searchable-snapshot
branch:This is too much to expect of our users, and it would be much better if ILM would guide the index through this process instead. We propose an ILM action to convert an index to a searchable snapshot, performing the steps above, to take place after the
Force Merge
action in the warm phase and after theFreeze
action in the cold phase. As of today it is not possible to freeze a searchable snapshot but we may add that functionality in future. It is possible to run theSet Priority
,Allocate
, andDelete
actions on a searchable snapshot.Of particular note is the snapshotting step: we take a snapshot of the single index. This avoids needing to retain a cluster-wide snapshot simply to preserve this single index. It's important that we retain this snapshot until after the index itself is deleted. Once the index is deleted we may (or may not) want to delete the corresponding snapshot.
The text was updated successfully, but these errors were encountered: