Class LoadOnlyFavoredStochasticBalancer
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer
org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer
org.apache.hadoop.hbase.master.balancer.LoadOnlyFavoredStochasticBalancer
- All Implemented Interfaces:
org.apache.hadoop.hbase.conf.ConfigurationObserver
,org.apache.hadoop.hbase.favored.FavoredNodesPromoter
,org.apache.hadoop.hbase.master.LoadBalancer
,org.apache.hadoop.hbase.Stoppable
public class LoadOnlyFavoredStochasticBalancer
extends org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer
Used for FavoredNode unit tests
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer
org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer.FavoredNodeLoadPicker
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer
org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.GeneratorType
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer
candidateGenerators, 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, loads, MAX_RUNNING_TIME_KEY, MAX_STEPS_KEY, MIN_COST_NEED_BALANCE_KEY, namedQueueRecorder, OVERALL_COST_FUNCTION_NAME, regionCacheRatioOnOldServerMap, RUN_MAX_STEPS_KEY, STEPS_PER_REGION_KEY
Fields inherited from class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
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, onlySystemTablesOnMaster, rackManager, regionFinder, services, slop, useRegionFinder
Fields inherited from interface org.apache.hadoop.hbase.favored.FavoredNodesPromoter
FAVORED_ALWAYS_ASSIGN_REGIONS
Fields inherited from interface org.apache.hadoop.hbase.master.LoadBalancer
BOGUS_SERVER_NAME, SYSTEM_TABLES_ON_MASTER, TABLES_ON_MASTER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.hadoop.hbase.master.balancer.CandidateGenerator>
Methods inherited from class org.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer
balanceTable, generateFavoredNodesForDaughter, generateFavoredNodesForMergedRegion, getFavoredNodes, getRandomGenerator, randomAssignment, retainAssignment, roundRobinAssignment, setMasterServices
Methods inherited from class org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer
composeAttributeName, computeCost, createCostFunctions, functionCost, getCandidateGenerators, getCostFunctionNames, getCostFunctions, initCosts, loadConf, needsBalance, nextAction, setRackManager, updateBalancerLoadInfo, updateClusterMetrics, updateCostsAndWeightsWithAction, updateMetricsSize
Methods inherited from class org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer
assignMasterSystemRegions, balanceCluster, balanceMasterRegions, getConf, getDefaultSlop, idleRegionServerExist, initialize, isStopped, onConfigurationChange, postMasterStartupInitialize, preBalanceCluster, regionOffline, regionOnline, shouldBeOnMaster, sloppyRegionServerExist, stop, toEnsumbleTableLoad, updateBalancerStatus
-
Constructor Details
-
LoadOnlyFavoredStochasticBalancer
public LoadOnlyFavoredStochasticBalancer()
-
-
Method Details
-
createCandidateGenerators
protected List<org.apache.hadoop.hbase.master.balancer.CandidateGenerator> createCandidateGenerators()- Overrides:
createCandidateGenerators
in classorg.apache.hadoop.hbase.master.balancer.FavoredStochasticBalancer
-