Skip to content
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

Ensuring that the ShrinkAction does not hang if total shards per node is too low #76780

Conversation

masseyke
Copy link
Member

Ensuring that the ShrinkAction does not hang if total shards per node is too low (#76732)

This is a backport of #76732. We added configuration to AllocateAction to set the total shards
per node property on the index. This makes it possible that a user could set this to a value lower
than the total number of shards in the index that is about to be shrunk, meaning that all of the
shards could not be moved to a single node in the ShrinkAction. This commit unsets the total
shards per node property so that we fall back to the default value (-1, unlimited) in the
ShrinkAction to avoid this.
Relates to #44070

… is too low (elastic#76732)

We added configuration to AllocateAction to set the total shards per node property on the index. This makes it possible that a user could set this to a value lower than the total number of shards in the index that is about to be shrunk, meaning that all of the shards could not be moved to a single node in the ShrinkAction. This commit unsets the total shards per node property so that we fall back to the default value (-1, unlimited) in the ShrinkAction to avoid this.
Relates to elastic#44070
@masseyke masseyke added :Data Management/ILM+SLM Index and Snapshot lifecycle management backport labels Aug 20, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Aug 20, 2021
@masseyke
Copy link
Member Author

@elasticmachine update branch

@masseyke masseyke merged commit 7e8ea78 into elastic:7.x Aug 20, 2021
@masseyke masseyke deleted the feature/backport-shrink-action-total-shards-per-node branch November 2, 2021 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow adjustment of index resource constraints in ILM phase transitions
3 participants