static class StochasticLoadBalancer.RegionCountSkewCostFunction extends StochasticLoadBalancer.CostFunction
| Modifier and Type | Field and Description |
|---|---|
(package private) static float |
DEFAULT_REGION_COUNT_SKEW_COST |
(package private) static String |
REGION_COUNT_SKEW_COST_KEY |
private double[] |
stats |
cluster| Constructor and Description |
|---|
RegionCountSkewCostFunction(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
cost() |
(package private) void |
init(BaseLoadBalancer.Cluster cluster)
Called once per LB invocation to give the cost function
to initialize it's state, and perform any costly calculation.
|
costFromArray, getMultiplier, isNeeded, postAction, regionMoved, scale, setMultiplierstatic final String REGION_COUNT_SKEW_COST_KEY
static final float DEFAULT_REGION_COUNT_SKEW_COST
private double[] stats
RegionCountSkewCostFunction(org.apache.hadoop.conf.Configuration conf)
void init(BaseLoadBalancer.Cluster cluster)
StochasticLoadBalancer.CostFunctioninit in class StochasticLoadBalancer.CostFunctionprotected double cost()
cost in class StochasticLoadBalancer.CostFunctionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.