Skip to content

Conversation

@gwbrown
Copy link
Contributor

@gwbrown gwbrown commented Nov 28, 2018

This commit documents a workaround for situations where an index
may be deleted by ILM immediately after it is restored from a snapshot.

Documents a workaround for #35561

This commit documents a workaround for situations where an index
may be deleted by ILM immediately afterit is restored from a snapshot.
@gwbrown gwbrown added >docs General docs changes :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Nov 28, 2018
@gwbrown gwbrown requested review from colings86 and talevy November 28, 2018 23:35
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

restored index to be deleted by Index Lifecycle Management immediately after it
is restored. To prevent this, before restoring the snapshot,
<<start-stop-ilm,lifecycle policy execution can be paused>> to allow the policy
to be removed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should re-word this to describe that in some case you may not want the lifecycle to continue to execute after the restore and in those case you should use the process described. This is for two reasons: 1) This is not a bug but the above wording may come across sounding like a bug to some users and 2) there are other reasons that having a delete action that you might not want the index to continue on its lifecycle, such as if it would allocate to a node attribute that no longer exists or if the policy no longer exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I've rewritten it to be clear that this is the intended behavior and extended it to other examples besides index deletion.

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for rewording

@gwbrown gwbrown merged commit d765296 into elastic:master Nov 30, 2018
gwbrown added a commit that referenced this pull request Nov 30, 2018
This commit documents how Index Lifecycle Management
interacts with snapshot/restore, and documents a workaround
for situations in which ILM should not immediately resume
managing an index after it is restored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM Index and Snapshot lifecycle management >docs General docs changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants