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

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.MemstoreSizeCostFunction
Enclosing class:
StochasticLoadBalancer

public static class StochasticLoadBalancer.MemstoreSizeCostFunction
extends StochasticLoadBalancer.CostFromRegionLoadFunction

Compute the cost of total memstore 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 © 2013 The Apache Software Foundation. All Rights Reserved.