Class CostFromRegionLoadAsRateFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CostFunction
org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadFunction
org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadAsRateFunction
- Direct Known Subclasses:
MemStoreSizeCostFunction
,ReadRequestCostFunction
,WriteRequestCostFunction
Class to be used for the subset of RegionLoad costs that should be treated as rates. We do not
compare about the actual rate in requests per second but rather the rate relative to the rest of
the regions.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
cluster, COST_EPSILON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
getRegionLoadCost
(Collection<BalancerRegionLoad> regionLoadList) Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadFunction
cost, getCostFromRl, prepare, regionMoved
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
getMultiplier, isNeeded, postAction, scale, setMultiplier, updateWeight
-
Constructor Details
-
CostFromRegionLoadAsRateFunction
-
-
Method Details
-
getRegionLoadCost
- Overrides:
getRegionLoadCost
in classCostFromRegionLoadFunction
-