@InterfaceAudience.Private public class HeterogeneousRegionCountCostFunction extends StochasticLoadBalancer.CostFunction
* rs[0-9] 200 * rs1[0-9] 50
RegionServers with hostname matching the first rules will have a limit of 200, and the others 50. If there's no match, a default is set. The costFunction is trying to fill all RegionServers linearly, meaning that if the global usage is at 50%, then all RegionServers should hold half of their capacity in terms of regions. In order to use this CostFunction, you need to set the following options:cluster, COST_EPSILON| Modifier and Type | Method and Description |
|---|---|
protected double |
cost() |
regionMoved, updateWeightprotected double cost()
cost in class StochasticLoadBalancer.CostFunctionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.