Class RegionReplicaRackCostFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CostFunction
org.apache.hadoop.hbase.master.balancer.RegionReplicaGroupingCostFunction
org.apache.hadoop.hbase.master.balancer.RegionReplicaRackCostFunction
A cost function for region replicas for the rack distribution. We give a relatively high cost to
hosting replicas of the same region in the same rack. We do not prevent the case though.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.master.balancer.RegionReplicaGroupingCostFunction
costsPerGroup, maxCost
Fields inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
cluster, COST_EPSILON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
regionMoved
(int region, int oldServer, int newServer) Methods inherited from class org.apache.hadoop.hbase.master.balancer.RegionReplicaGroupingCostFunction
cost, costPerGroup, getMaxCost, isNeeded, prepare, updateWeight
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
getMultiplier, postAction, scale, setMultiplier
-
Field Details
-
REGION_REPLICA_RACK_COST_KEY
- See Also:
-
DEFAULT_REGION_REPLICA_RACK_COST_KEY
- See Also:
-
-
Constructor Details
-
RegionReplicaRackCostFunction
-
-
Method Details
-
loadCosts
- Specified by:
loadCosts
in classRegionReplicaGroupingCostFunction
-
regionMoved
- Overrides:
regionMoved
in classCostFunction
-