Repository navigation
mgr/balancer: make crush-compat mode work - #17983
Merged
Merged
Conversation
liewegas
force-pushed
the
wip-balancer
branch
from
October 26, 2017 03:36
7232862 to
6519725
Compare
Member
Author
|
@jcsp: got
on /a/sage-2017-10-30_02:29:13-rados-wip-sage-testing-2017-10-29-1619-distro-basic-smithi/1789687 I thought the ref vs gil thing was in master, but maybe not? |
- it does multiple iterations, like the upmap optimizer. - it decreases the step size if it isn't improving, in the hope that it is overshooting the minimum - debug output is cleaned up a bit (the info level should be genuinely useful) Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Take smaller steps if we overshoot max_misplaced. Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
..and fix the 'worse' threshold (we're just working around floating point imprecision; 1.01 was too coarse). Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Phase out the osd_weight values as we optimize the crush compat weight set. Allow a small regression in overall score if it means we are taking a step to remove the osd_weight value. Fix the 'osd reweightn' invocation. Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
We are smart enough to back off if we misplace too much. Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
To avoid getting stuck in a local minima, take a few additional steps if our score drops and see if it gets better. Signed-off-by: Sage Weil <[email protected]>
That should be ~1 PG or less on average; no real sense it taking a step smaller than that! Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
The verbose output is helpful for debugging and understanding what is being measured, but most of the time all that you care about is the score. Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
liewegas
force-pushed
the
wip-balancer
branch
from
November 1, 2017 12:29
b90a269 to
a59a1df
Compare
Collaborator
|
all commits in this PR are signed |
Collaborator
|
Docs: failed with errors |
Collaborator
|
submodules for project are unmodified |
Collaborator
|
make check succeeded |
1 similar comment
Collaborator
|
make check succeeded |
Contributor
|
@liewegas no, the fix for MonCommandCompletion wasn't in master yet (was in the big mgr refactor branch we just merged) |
jcsp
approved these changes
Nov 1, 2017
Member
Author
|
jenkins render docs |
Member
|
Great! |
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 is starting to work!
My only concern here is that when it breaks (throws an exception in serve()) we don't get a run failure because we don't have mgr health alerts for crashed modules yet. I don't think that should prevent us from merging, though. I've done some spot checks and it appears to be doing fine.