static class StochasticLoadBalancer.ServerLocalityCostFunction extends StochasticLoadBalancer.LocalityBasedCostFunction
Modifier and Type | Field and Description |
---|---|
private static float |
DEFAULT_LOCALITY_COST |
private static String |
LOCALITY_COST_KEY |
cluster
Constructor and Description |
---|
ServerLocalityCostFunction(org.apache.hadoop.conf.Configuration conf,
MasterServices srv) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
regionIndexToEntityIndex(int region)
Maps region to the current entity (server or rack) on which it is stored
|
cost, init, regionMoved, setServices
costFromArray, getMultiplier, isNeeded, postAction, scale, setMultiplier
private static final String LOCALITY_COST_KEY
private static final float DEFAULT_LOCALITY_COST
ServerLocalityCostFunction(org.apache.hadoop.conf.Configuration conf, MasterServices srv)
int regionIndexToEntityIndex(int region)
StochasticLoadBalancer.LocalityBasedCostFunction
regionIndexToEntityIndex
in class StochasticLoadBalancer.LocalityBasedCostFunction
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.