busbey opened a new pull request #1455: HBASE-24138 log more details about balancer decisions for StochasticLoadBalancer URL: https://github.com/apache/hbase/pull/1455 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); ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
