Skip to content

HBASE-24138 log more details about balancer decisions for StochasticLoadBalancer - #1455

Merged
busbey merged 2 commits into
apache:masterfrom
busbey:HBASE-24138
Apr 8, 2020
Merged

HBASE-24138 log more details about balancer decisions for StochasticLoadBalancer#1455
busbey merged 2 commits into
apache:masterfrom
busbey:HBASE-24138

Conversation

@busbey

Copy link
Copy Markdown
Contributor

Based on logs needed when troubleshooting some balancer decisions.

when the log level on StochasticLoadBalancer is set to DEBUG messages look like this:

2020-04-08 09:57:39,515 DEBUG [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1196): RegionCountSkewCostFunction sees a total of 3 servers and 9 regions.
2020-04-08 09:57:39,527 DEBUG [Time-limited test] balancer.StochasticLoadBalancer(348): We need to load balance cluster; total cost=10005.833333333334, sum multiplier=10602.0; min cost/multiplier which needs balance is 0.05

when it is TRACE it looks like:

2020-04-08 10:49:48,416 DEBUG [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1196): RegionCountSkewCostFunction sees a total of 3 servers and 9 regions.
2020-04-08 10:49:48,417 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server11855,19031,-1' has 3 regions
2020-04-08 10:49:48,418 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server15849,14000,-1' has 3 regions
2020-04-08 10:49:48,418 TRACE [Time-limited test] balancer.StochasticLoadBalancer$RegionCountSkewCostFunction(1200): RegionCountSkewCostFunction sees server 'server87321,54683,-1' has 3 regions
2020-04-08 10:49:48,446 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): PrimaryRegionCountSkewCostFunction not needed
2020-04-08 10:49:48,447 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): RegionReplicaHostCostFunction not needed
2020-04-08 10:49:48,450 TRACE [Time-limited test] balancer.StochasticLoadBalancer(338): RegionReplicaRackCostFunction not needed
2020-04-08 10:49:48,451 DEBUG [Time-limited test] balancer.StochasticLoadBalancer(348): We need to load balance cluster; total cost=10005.833333333334, sum multiplier=10602.0; min cost/multiplier which needs balance is 0.05
2020-04-08 10:49:48,452 TRACE [Time-limited test] balancer.StochasticLoadBalancer(353): Balance decision detailed function costs=RegionCountSkewCostFunction : (500.0, 0.0); PrimaryRegionCountSkewCostFunction : (500.0, 0.0); MoveCostFunction : (7.0, 0.0); ServerLocalityCostFunction : (25.0, 0.0); RackLocalityCostFunction : (15.0, 0.0); TableSkewCostFunction : (35.0, 0.16666666666666666); RegionReplicaHostCostFunction : (100000.0, 0.0); RegionReplicaRackCostFunction : (10000.0, 0.0); ReadRequestCostFunction : (10000.0, 1.0); CPRequestCostFunction : (5.0, 0.0); WriteRequestCostFunction : (5.0, 0.0); MemStoreSizeCostFunction : (5.0, 0.0); StoreFileCostFunction : (5.0, 0.0);

…oadBalancer
Change-Id: I35a182453525973c6006069176fea3bac1c8513e
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 46sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ master Compile Tests _
+1 💚mvninstall6m 8smaster passed
+1 💚checkstyle1m 18smaster passed
+1 💚spotbugs2m 17smaster passed
_ Patch Compile Tests _
+1 💚mvninstall5m 40sthe patch passed
-0 ⚠️checkstyle1m 14shbase-server: The patch generated 1 new + 104 unchanged - 0 fixed = 105 total (was 104)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚hadoopcheck12m 9sPatch does not cause any errors with Hadoop 2.10.0 or 3.1.2.
+1 💚spotbugs2m 58sthe patch passed
_ Other Tests _
+1 💚asflicense0m 15sThe patch does not generate ASF License warnings.
42m 21s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1455
Optional Testsdupname asflicense spotbugs hadoopcheck hbaseanti checkstyle
unameLinux 6cf8ff945d33 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c383bd1
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-general-check/output/diff-checkstyle-hbase-server.txt
Max. process+thread count83 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f) spotbugs=3.1.12
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Change-Id: Id123299b1aab046f74f3d59bc7a7677e18fa5c6a

@virajjasanivirajjasani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@busbey
busbey merged commit 2d78a28 into apache:masterApr 8, 2020
@busbey
busbey deleted the HBASE-24138 branch April 8, 2020 19:03
@busbey

Copy link
Copy Markdown
ContributorAuthor

thanks for the review!

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 10sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall7m 3smaster passed
+1 💚compile1m 9smaster passed
+1 💚shadedjars5m 47sbranch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 43shbase-server in master failed.
_ Patch Compile Tests _
+1 💚mvninstall6m 47sthe patch passed
+1 💚compile1m 9sthe patch passed
+1 💚javac1m 9sthe patch passed
+1 💚shadedjars5m 47spatch has no errors when building our shaded downstream artifacts.
-0 ⚠️javadoc0m 40shbase-server in the patch failed.
_ Other Tests _
+1 💚unit169m 37shbase-server in the patch passed.
201m 42s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#1455
Optional Testsjavac javadoc unit shadedjars compile
unameLinux d3f5be4f958e 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c383bd1
Default Java2020-01-14
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-server.txt
javadochttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/testReport/
Max. process+thread count3187 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 46sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall6m 10smaster passed
+1 💚compile1m 1smaster passed
+1 💚shadedjars5m 5sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 38smaster passed
_ Patch Compile Tests _
+1 💚mvninstall5m 43sthe patch passed
+1 💚compile0m 59sthe patch passed
+1 💚javac0m 59sthe patch passed
+1 💚shadedjars4m 57spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 38sthe patch passed
_ Other Tests _
+1 💚unit186m 43shbase-server in the patch passed.
215m 24s
SubsystemReport/Notes
DockerClient=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#1455
Optional Testsjavac javadoc unit shadedjars compile
unameLinux ddc2cddfee3a 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / c383bd1
Default Java1.8.0_232
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/testReport/
Max. process+thread count2397 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1455/1/console
versionsgit=2.17.1 maven=(cecedd343002696d0abb50b32b541b8a6ba2883f)
Powered byApache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

asfgit pushed a commit that referenced this pull request Apr 8, 2020
…oadBalancer (#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
asfgit pushed a commit that referenced this pull request Apr 8, 2020
…oadBalancer (#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
asfgit pushed a commit that referenced this pull request Apr 8, 2020
…oadBalancer (#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
asfgit pushed a commit that referenced this pull request Apr 9, 2020
…oadBalancer (#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
…oadBalancer (apache#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
…oadBalancer (apache#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
thangTang pushed a commit to thangTang/hbase that referenced this pull request Apr 16, 2020
…oadBalancer (apache#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…oadBalancer (apache#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
wchevreuil pushed a commit to wchevreuil/hbase that referenced this pull request May 24, 2021
…oadBalancer (apache#1455)
- at DEBUG log messages about RegionCountSkewCostFunction region/server totals
- at DEBUG log messages about the decision to balance or not with total costs
- at TRACE log messages about region count on each server RegionCountSkewCostFunction sees
- at TRACE log message with the individual cost functions used in the decision to balance or not
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 2d78a28)
(cherry picked from commit ce53382)
Change-Id: I423ba070e9dffd3cc9e6a652574f5dae51912f5a
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@busbey@Apache-HBase@virajjasani