@InterfaceAudience.Private public class CacheAwareLoadBalancer extends StochasticLoadBalancer
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheAwareLoadBalancer.GeneratorFunctionType |
StochasticLoadBalancer.GeneratorTypecandidateGenerators, COST_FUNCTIONS_COST_FUNCTIONS_KEY, costFunctions, DEFAULT_KEEP_REGION_LOADS, DEFAULT_MAX_RUNNING_TIME, DEFAULT_MAX_STEPS, DEFAULT_MIN_COST_NEED_BALANCE, DEFAULT_RUN_MAX_STEPS, DEFAULT_STEPS_PER_REGION, KEEP_REGION_LOADS, MAX_RUNNING_TIME_KEY, MAX_STEPS_KEY, MIN_COST_NEED_BALANCE_KEY, OVERALL_COST_FUNCTION_NAME, RUN_MAX_STEPS_KEY, STEPS_PER_REGION_KEYBALANCER_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, onlySystemTablesOnMaster, rackManager, regionFinder, services, slop, useRegionFinderBOGUS_SERVER_NAME, SYSTEM_TABLES_ON_MASTER, TABLES_ON_MASTER| Constructor and Description |
|---|
CacheAwareLoadBalancer() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.apache.hadoop.hbase.master.balancer.CandidateGenerator> |
createCandidateGenerators() |
protected List<org.apache.hadoop.hbase.master.balancer.CostFunction> |
createCostFunctions(org.apache.hadoop.conf.Configuration configuration) |
void |
loadConf(org.apache.hadoop.conf.Configuration configuration) |
void |
updateClusterMetrics(ClusterMetrics clusterMetrics)
Set the current cluster status.
|
balanceTable, functionCost, getRandomGenerator, updateBalancerLoadInfoassignMasterSystemRegions, balanceCluster, balanceMasterRegions, getConf, getDefaultSlop, idleRegionServerExist, initialize, isStopped, onConfigurationChange, postMasterStartupInitialize, preBalanceCluster, randomAssignment, regionOffline, regionOnline, retainAssignment, roundRobinAssignment, setMasterServices, shouldBeOnMaster, sloppyRegionServerExist, stop, toEnsumbleTableLoad, updateBalancerStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMasterCanHostUserRegions, isSystemTablesOnlyOnMaster, isTablesOnMasterpublic void loadConf(org.apache.hadoop.conf.Configuration configuration)
loadConf in class StochasticLoadBalancerprotected List<org.apache.hadoop.hbase.master.balancer.CandidateGenerator> createCandidateGenerators()
createCandidateGenerators in class StochasticLoadBalancerprotected List<org.apache.hadoop.hbase.master.balancer.CostFunction> createCostFunctions(org.apache.hadoop.conf.Configuration configuration)
createCostFunctions in class StochasticLoadBalancerpublic void updateClusterMetrics(ClusterMetrics clusterMetrics)
LoadBalancerupdateClusterMetrics in interface LoadBalancerupdateClusterMetrics in class StochasticLoadBalancerCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.