Class WriteRequestCostFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CostFunction
org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadFunction
org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadAsRateFunction
org.apache.hadoop.hbase.master.balancer.WriteRequestCostFunction
Compute the cost of total number of write requests. The more unbalanced the higher the computed
cost will be. This uses a rolling average of regionload.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
cluster, COST_EPSILON
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadAsRateFunction
getRegionLoadCost
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFromRegionLoadFunction
cost, prepare, regionMoved
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
getMultiplier, isNeeded, postAction, scale, setMultiplier, updateWeight
-
Field Details
-
WRITE_REQUEST_COST_KEY
- See Also:
-
DEFAULT_WRITE_REQUEST_COST
- See Also:
-
-
Constructor Details
-
WriteRequestCostFunction
WriteRequestCostFunction(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
getCostFromRl
- Specified by:
getCostFromRl
in classCostFromRegionLoadFunction
-