Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Feb 7, 2020

This commit changes the forcemerge action to also be allowed in the hot phase for policies. The
forcemerge will occur after a rollover, and allows users to take advantage of higher disk speeds for
performing the force merge (on a separate node type, for example).

On caveat with this is that a forcemerge in the hot phase MUST be accompanied by a rollover
action. ILM validates policies to ensure this is the case.

Resolves #43165

This commit changes the `forcemerge` action to also be allowed in the `hot` phase for policies. The
forcemerge will occur after a rollover, and allows users to take advantage of higher disk speeds for
performing the force merge (on a separate node type, for example).

On caveat with this is that a `forcemerge` in the `hot` phase *MUST* be accompanied by a `rollover`
action. ILM validates policies to ensure this is the case.

Resolves elastic#43165
@dakrone dakrone added >enhancement :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.0.0 v7.7.0 labels Feb 7, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

Thanks for adding support for this Lee, nicely done!

I have a possible optimisation suggestion to keep the tests running time to a minimum, but up to you if you'd like to change it (these are unit tests so they're blazing fast anyway)

LGTM

Copy link
Contributor

@probakowski probakowski 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 @dakrone ! I've added one small nit (optional)

@dakrone dakrone merged commit e95cc14 into elastic:master Feb 7, 2020
@dakrone dakrone deleted the ilm-allow-forcemerge-in-hot branch February 7, 2020 22:26
dakrone added a commit to dakrone/elasticsearch that referenced this pull request Feb 7, 2020
* Allow forcemerge in the hot phase for ILM policies

This commit changes the `forcemerge` action to also be allowed in the `hot` phase for policies. The
forcemerge will occur after a rollover, and allows users to take advantage of higher disk speeds for
performing the force merge (on a separate node type, for example).

On caveat with this is that a `forcemerge` in the `hot` phase *MUST* be accompanied by a `rollover`
action. ILM validates policies to ensure this is the case.

Resolves elastic#43165

* Use anyMatch instead of findAny in validation

* Make randomTimeseriesLifecyclePolicy single-pass
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ui (:ES-UI)

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 >enhancement Team:Deployment Management Meta label for Management Experience - Deployment Management team v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Force Merge to hot lifecycle phase

6 participants