@InterfaceAudience.Private class CPRequestCostFunction extends CostFromRegionLoadAsRateFunction
Modifier and Type | Field and Description |
---|---|
private static String |
CP_REQUEST_COST_KEY |
private static float |
DEFAULT_CP_REQUEST_COST |
cluster, COST_EPSILON
Constructor and Description |
---|
CPRequestCostFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected double |
getCostFromRl(BalancerRegionLoad rl) |
getRegionLoadCost
cost, prepare, regionMoved
getMultiplier, isNeeded, postAction, scale, setMultiplier, updateWeight
private static final String CP_REQUEST_COST_KEY
private static final float DEFAULT_CP_REQUEST_COST
CPRequestCostFunction(org.apache.hadoop.conf.Configuration conf)
protected double getCostFromRl(BalancerRegionLoad rl)
getCostFromRl
in class CostFromRegionLoadFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.