Skip to content

Conversation

@talevy
Copy link
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 Index and Snapshot lifecycle management label May 21, 2018
@talevy talevy requested a review from colings86 May 21, 2018 21:35
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

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.

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
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 Index and Snapshot lifecycle management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants