Repository navigation
add generate-crush-change-mappings command - #36
Merged
baergj merged 3 commits intoApr 4, 2023
Merged
Conversation
neurodrone
force-pushed
the
handle-crush-change-mappings
branch
4 times, most recently
from
March 30, 2023 19:44
374721f to
7a29a51
Compare
baergj
reviewed
Mar 30, 2023
baergj
reviewed
Mar 30, 2023
neurodrone
force-pushed
the
handle-crush-change-mappings
branch
from
March 30, 2023 19:55
7a29a51 to
5068c74
Compare
Contributor
|
👍 Though the new test file needs a license header. |
baergj
approved these changes
Mar 31, 2023
Contributor
Author
|
Let me know if there's anything else needed here! 😄 🙏 |
Contributor
|
Nope! I just forgot that I have to press merge - sorry for the wait! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds a new
generate-crush-change-mappingscommand to pgremapper. It attempts to address use-cases that require us to perform a major change on the CRUSHmap that can potentially incur a large rebalance of PGs across OSDs or hosts (or more). Using this command, we can now generate a list of new upmap mappings that we can gradually (or completely) import to perform the rebalance in advance before actually injecting the change via CRUSHmap.An example use-case is to change the chooseleaf of a CRUSH rule to
hostfromosdor torackfromhost. This change can potentially incur a significant amount of backfills that cannot be easily cancelled since cancelling it would violate the new spread constraint set via the change to the crush rule. Using this command, we should be able to simulate and export a new set of mappings that can be applied in advance, prior to injecting the new CRUSHmap into the OSDMap.Changes remaining before merging PR: