- Notifications
You must be signed in to change notification settings - Fork 25.5k
Add a replicate_for option to the ILM searchable_snapshot action #119003
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 a replicate_for option to the ILM searchable_snapshot action #119003
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provisionally looks good to me!
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/TimeseriesLifecycleType.java Show resolved Hide resolved
...core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitUntilReplicateForTimePassesStep.java Outdated Show resolved Hide resolved
It shouldn't ever happen, but ever is a long time.
and add tests of the validation logic
and update the tests. Also, rewrite the tests to correctly delineate actual and expected values (doh!).
It can be null, but if it isn't, then it need to be a positive amount of time (not -1 or 0).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, are you going to do docs in this PR, or a subsequent one?
I'll do them on this PR first thing tomorrow -- thanks for the code review, and I'll ping you for one last look at the docs before I merge this. |
c19732e
to da09652
Compare Pinging @elastic/es-docs (Team:Docs) |
@dakrone what do you think of this for the docs? |
Hi @joegallo, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs LGTM also
CI passed but github missed the update notification, I'm merging this. |
💚 Backport successful
|
Adds a
replicate_for
option (expressed as a time value) to the ILMsearchable_snapshot
action. If that option is present, then the searchable snapshot will be mounted with one replica (rather than zero replicas), and ILM execution will wait in the searchable snapshot action until thereplicate_for
time value has passed. Once the time value has passed, then the replica will be removed and execution will continue.As an example, this makes it possible to have a
frozen
phase that lasts for 60 days, but to have 14 days worth of frozen data mounted with replicas.