Package org.apache.hadoop.hbase.master.balancer
package org.apache.hadoop.hbase.master.balancer
-
ClassDescriptionAn action to move or swap a regionChore that will call HMaster.balance
HMaster.balance()
when needed.An efficient array based implementation similar to ClusterState for keeping the status of the cluster in terms of region assignment and distribution.Wrapper class for the few fields required by theStochasticLoadBalancer
from the fullRegionMetrics
.The base class for load balancers.Generates a candidate action to be applied to the cluster for cost function searchThis is the cluster we want to balance.Class used to hold the current state of the cluster and how balanced it is.Chore that will feed the balancer the cluster status.Class to be used for the subset of RegionLoad costs that should be treated as rates.Base class the allows writing costs functions from rolling average of some number from RegionLoad.Base class of StochasticLoadBalancer's Cost Functions.Compute the cost of total number of coprocessor requests The more unbalanced the higher the computed cost will be.A helper class to compute a scaled cost usingDescriptiveStatistics()
.An implementation of theLoadBalancer
that assigns favored nodes for each region.This is an optional Cost function designed to allow region count skew across RegionServers.The class that creates a load balancer from a conf.Tool to test performance of differentLoadBalancer
implementations.Store the balancer state.Compute a cost of a potential cluster configuration based upon whereHStoreFile
s are located.a balancer which is only used in maintenance mode.Master based cluster info provider.Compute the cost of total memstore size.Faced for exposing metrics about the balancer.This metrics balancer uses extended source for stochastic load balancer to report its related metrics to JMX.This interface extends the basic metrics balancer source to add a function to report metrics that related to stochastic load balancer.Given the starting state of the regions and a potential ending state compute cost based upon the number of regions that have moved.Compute the cost of a potential cluster state from skew in number of primary regions on a cluster.Compute the cost of total number of read requests The more unbalanced the higher the computed cost will be.Compute the cost of a potential cluster state from skew in number of regions on a cluster.This will find where data for a region is located in HDFS.The following comparator assumes that RegionId from HRegionInfo can represent the age of the region - larger RegionId means the region is younger.Generates candidates which moves the replicas out of the region server for co-hosted region replicasA cost function for region replicas.A cost function for region replicas.Generates candidates which moves the replicas out of the rack for co-hosted region replicas in the same rackA cost function for region replicas for the rack distribution.Data structure that holds servername and 'load'.Makes decisions about the placement and movement of Regions across RegionServers.Stores additional per-server information about the regions added/removed during the run of the balancing algorithm.This is a best effort load balancer.Compute the cost of total open storefiles size.Compute the cost of a potential cluster configuration based upon how evenly distributed tables are.Compute the cost of total number of write requests.