Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
0.99.2
-
None
-
None
Description
BaseLoadBalancer#needsBalance will be invoked to judge whether needs to do balancing. StochasticLoadBalancer do balancing by considering region count skew cost, read/write request cost, locality cost, etc. However, it seems that only sloppiness of region count is checked in BaseLoadBalancer#needsBalance, there may be cases that request/locality cost is high when region count is even, this will skip the actual balancing so that can't achieve lower cost. There, Do we need to check sloppiness of other factors(read/write request, locality, etc) in needsBalance?