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, setMultiplier
static 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.CostFunction
init
in class StochasticLoadBalancer.CostFunction
protected double cost()
cost
in class StochasticLoadBalancer.CostFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.