@InterfaceAudience.LimitedPrivate(value="Configuration") public class SimpleLoadBalancer extends BaseLoadBalancer
BaseLoadBalancer.balanceCluster(Map).
On cluster startup, bulk assignment can be used to determine locations for all Regions in a
cluster.
This classes produces plans for the AssignmentManager to execute.BALANCER_DECISION_BUFFER_ENABLED, BALANCER_REJECTION_BUFFER_ENABLED, clusterStatus, DEFAULT_BALANCER_DECISION_BUFFER_ENABLED, DEFAULT_BALANCER_REJECTION_BUFFER_ENABLED, DEFAULT_HBASE_MASTER_LOADBALANCE_BYTABLE, isByTable, masterServerName, metricsBalancer, MIN_SERVER_BALANCE, provider, rackManager, regionFinder, slop, useRegionFinderBOGUS_SERVER_NAME, HBASE_RSGROUP_LOADBALANCER_CLASS| Constructor and Description |
|---|
SimpleLoadBalancer() |
| Modifier and Type | Method and Description |
|---|---|
protected List<RegionPlan> |
balanceTable(TableName tableName,
Map<ServerName,List<RegionInfo>> loadOfOneTable)
Generate a global load balancing plan according to the specified map of server information to
the most loaded regions of each server.
|
protected void |
loadConf(org.apache.hadoop.conf.Configuration conf) |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
Notification that config has changed
|
protected void |
preBalanceCluster(Map<TableName,Map<ServerName,List<RegionInfo>>> loadOfAllTable)
Called before actually executing balanceCluster.
|
balanceCluster, getConf, getDefaultSlop, idleRegionServerExist, initialize, isStopped, postMasterStartupInitialize, randomAssignment, regionOffline, regionOnline, retainAssignment, roundRobinAssignment, setClusterInfoProvider, sloppyRegionServerExist, stop, toEnsumbleTableLoad, updateBalancerStatus, updateClusterMetricsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateBalancerLoadInfoprotected void preBalanceCluster(Map<TableName,Map<ServerName,List<RegionInfo>>> loadOfAllTable)
BaseLoadBalancerpreBalanceCluster in class BaseLoadBalancerprotected void loadConf(org.apache.hadoop.conf.Configuration conf)
loadConf in class BaseLoadBalancerpublic void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
LoadBalanceronConfigurationChange in interface ConfigurationObserveronConfigurationChange in interface LoadBalanceronConfigurationChange in class BaseLoadBalancerprotected List<RegionPlan> balanceTable(TableName tableName, Map<ServerName,List<RegionInfo>> loadOfOneTable)
Order the regions to move from most recent to least.
balanceTable in class BaseLoadBalancerloadOfOneTable - Map of regionservers and their load/region information to a list of their
most loaded regionstableName - the table to be balancedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.