HBASE-22349 slop in StochasticLoadBalancer#4371
Merged
Merged
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
|
test failures don't appear to be related. |
apurtell
approved these changes
Apr 28, 2022
Contributor
There was a problem hiding this comment.
Approved for commit to branch-2.5, branch-2, and master. Please push a fix for the reported whitespace issue and I will then merge this. If backport to branch-2 is nontrivial please consider providing a branch-2 PR as well, although I will try to cherry pick this change otherwise.
Contributor
Author
|
Oops, missed the whitespace comment. Will fix. |
asfgit
pushed a commit
that referenced
this pull request
Apr 28, 2022
Signed-off-by: Andrew Purtell <apurtell@apache.org> Conflicts: hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/BalancerTestBase.java
asfgit
pushed a commit
that referenced
this pull request
Apr 28, 2022
Signed-off-by: Andrew Purtell <apurtell@apache.org> Conflicts: hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.java hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/BalancerTestBase.java
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.
HBASE-22349
Slop is a concept used within
SimpleLoadBalancerbut has always been referenced inStochasticLoadBalancerwithout any effect. This change proposes that we start using the concept of slop, as another trigger for a balancer run. This is similar to HBASE-24139, where a server with 0 regions is considered a trigger to run the balancer.In this way we can guarantee balancer attempts to run in other cases that a balancer run is desirable, such as only 1 region on a server, or 2x or 3x the average region count on a server.
I remove the
normalizeSlopmethod for two reasons:As far as I can tell, the default slop of
0.001fnever had any meaning for theStochasticLoadBalancerbefore this change. I choose to reuse the default slop of0.2fas used in theSimpleLoadBalancer.