Class SlopFixingCandidateGenerator
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CandidateGenerator
org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator
org.apache.hadoop.hbase.master.balancer.SlopFixingCandidateGenerator
A simple candidate generator that attempts to move regions from the most-loaded servers to the
least-loaded servers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final float
Fields inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
MAX_WEIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BalanceAction
generateCandidate
(BalancerClusterState cluster, boolean isWeighing) Generates a balancing action to appease the conditional.Methods inherited from class org.apache.hadoop.hbase.master.balancer.RegionPlanConditionalCandidateGenerator
batchMovesAndResetClusterState, clearWeightCache, generate, getBalancerConditionals, getWeight, undoBatchAction, willBeAccepted
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CandidateGenerator
getAction, pickOtherRandomRack, pickOtherRandomServer, pickRandomRack, pickRandomRegion, pickRandomRegions, pickRandomServer
-
Field Details
-
LOG
-
slop
-
-
Constructor Details
-
SlopFixingCandidateGenerator
SlopFixingCandidateGenerator(BalancerConditionals balancerConditionals)
-
-
Method Details
-
generateCandidate
Description copied from class:RegionPlanConditionalCandidateGenerator
Generates a balancing action to appease the conditional.- Specified by:
generateCandidate
in classRegionPlanConditionalCandidateGenerator
- Parameters:
cluster
- Current state of the cluster.isWeighing
- Flag indicating if the generator is being used for weighing.- Returns:
- A BalanceAction, or NULL_ACTION if no action is needed.
-