@InterfaceAudience.Private class RegionReplicaHostCostFunction extends RegionReplicaGroupingCostFunction
Modifier and Type | Field and Description |
---|---|
private org.agrona.collections.Int2IntCounterMap[] |
colocatedReplicaCountsPerGroup |
private static float |
DEFAULT_REGION_REPLICA_HOST_COST_KEY |
private static String |
REGION_REPLICA_HOST_COST_KEY |
costsPerGroup, maxCost
cluster, COST_EPSILON
Constructor and Description |
---|
RegionReplicaHostCostFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected void |
loadCosts() |
protected void |
regionMoved(int region,
int oldServer,
int newServer) |
cost, costPerGroup, getMaxCost, isNeeded, prepare, updateWeight
getMultiplier, postAction, scale, setMultiplier
private static final String REGION_REPLICA_HOST_COST_KEY
private static final float DEFAULT_REGION_REPLICA_HOST_COST_KEY
private org.agrona.collections.Int2IntCounterMap[] colocatedReplicaCountsPerGroup
public RegionReplicaHostCostFunction(org.apache.hadoop.conf.Configuration conf)
protected void loadCosts()
loadCosts
in class RegionReplicaGroupingCostFunction
protected void regionMoved(int region, int oldServer, int newServer)
regionMoved
in class CostFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.