Skip to content

add index.lifecycle.skip setting for skipping policy execution#30766

Merged
talevy merged 5 commits intoelastic:index-lifecyclefrom
talevy:ilm-skip
May 23, 2018
Merged

add index.lifecycle.skip setting for skipping policy execution#30766
talevy merged 5 commits intoelastic:index-lifecyclefrom
talevy:ilm-skip

Conversation

@talevy
Copy link
Copy Markdown
Contributor

@talevy talevy commented May 21, 2018

It is useful to pause execution of policies for indices in case the cluster
is not in a good place to execute certain actions.

the index update settings api is to be used as an advanced API for configuring this setting on indices that should be paused.

It is useful to pause execution of policies for indices in case the cluster
is not in a good place to execute certain actions.
@talevy talevy added the :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. label May 21, 2018
@talevy talevy requested a review from colings86 May 21, 2018 21:35
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
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.

I left a small comment about log level but otherwise LGTM

Settings indexSettings = indexMetaData.getSettings();
if (LifecycleSettings.LIFECYCLE_SKIP_SETTING.get(indexSettings)) {
logger.debug("skipping policy [" + policy + "] for index [" + indexMetaData.getIndex().getName() + "]."
+ LifecycleSettings.LIFECYCLE_SKIP + "== true");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think maybe this should be at info level?

@talevy talevy merged commit d97cba3 into elastic:index-lifecycle May 23, 2018
@talevy talevy deleted the ilm-skip branch May 23, 2018 21:36
jasontedor pushed a commit that referenced this pull request Aug 17, 2018
It is useful to pause execution of policies for indices in case the cluster
is not in a good place to execute certain actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants