org.apache.hadoop.hbase.master.balancer
Class StochasticLoadBalancer.StoreFileCostFunction

java.lang.Object
  extended by org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFunction
      extended by org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFromRegionLoadFunction
          extended by org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.StoreFileCostFunction
Enclosing class:
StochasticLoadBalancer

public static class StochasticLoadBalancer.StoreFileCostFunction
extends StochasticLoadBalancer.CostFromRegionLoadFunction

Compute the cost of total open storefiles size. The more unbalanced the higher the computed cost will be. This uses a rolling average of regionload.


Method Summary
protected  double getCostFromRl(RegionLoad rl)
           
 
Methods inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFromRegionLoadFunction
getRegionLoadCost
 
Methods inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.CostFunction
costFromArray, scale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCostFromRl

protected double getCostFromRl(RegionLoad rl)
Specified by:
getCostFromRl in class StochasticLoadBalancer.CostFromRegionLoadFunction


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.