Uses of Class
org.apache.hadoop.hbase.master.RegionPlan
Package
Description
Table of Contents
-
Uses of RegionPlan in org.apache.hadoop.hbase.coprocessor
Modifier and TypeMethodDescriptiondefault void
MasterObserver.postBalance
(ObserverContext<MasterCoprocessorEnvironment> ctx, BalanceRequest request, List<RegionPlan> plans) Called after the balancing plan has been submitted. -
Uses of RegionPlan in org.apache.hadoop.hbase.favored
Modifier and TypeMethodDescriptionprotected List<RegionPlan>
FavoredNodeLoadBalancer.balanceTable
(TableName tableName, Map<ServerName, List<RegionInfo>> loadOfOneTable) -
Uses of RegionPlan in org.apache.hadoop.hbase.master
Modifier and TypeMethodDescriptionLoadBalancer.balanceCluster
(Map<TableName, Map<ServerName, List<RegionInfo>>> loadOfAllTable) Perform the major balance operation for cluster.HMaster.executeRegionPlansWithThrottling
(List<RegionPlan> plans) Execute region plans with throttlingMasterServices.executeRegionPlansWithThrottling
(List<RegionPlan> plans) Execute region plans with throttlingModifier and TypeMethodDescriptionint
RegionPlan.RegionPlanComparator.compare
(RegionPlan l, RegionPlan r) int
RegionPlan.compareTo
(RegionPlan other) Compare the region info.private static int
RegionPlan.compareTo
(RegionPlan left, RegionPlan right) Modifier and TypeMethodDescriptionHMaster.executeRegionPlansWithThrottling
(List<RegionPlan> plans) Execute region plans with throttlingMasterServices.executeRegionPlansWithThrottling
(List<RegionPlan> plans) Execute region plans with throttlingvoid
MasterCoprocessorHost.postBalance
(BalanceRequest request, List<RegionPlan> plans) -
Uses of RegionPlan in org.apache.hadoop.hbase.master.assignment
Modifier and TypeMethodDescriptionFuture<byte[]>
AssignmentManager.balance
(RegionPlan regionPlan) Future<byte[]>
AssignmentManager.moveAsync
(RegionPlan regionPlan) -
Uses of RegionPlan in org.apache.hadoop.hbase.master.balancer
Modifier and TypeMethodDescriptionfinal List<RegionPlan>
BaseLoadBalancer.balanceCluster
(Map<TableName, Map<ServerName, List<RegionInfo>>> loadOfAllTable) Perform the major balance operation for cluster, will invokeBaseLoadBalancer.balanceTable(TableName, Map)
to do actual balance.MaintenanceLoadBalancer.balanceCluster
(Map<TableName, Map<ServerName, List<RegionInfo>>> loadOfAllTable) protected List<RegionPlan>
BaseLoadBalancer.balanceMasterRegions
(Map<ServerName, List<RegionInfo>> clusterMap) Deprecated.since 2.4.0, will be removed in 3.0.0.protected abstract List<RegionPlan>
BaseLoadBalancer.balanceTable
(TableName tableName, Map<ServerName, List<RegionInfo>> loadOfOneTable) Perform the major balance operation for table, all sub classes should override this method.protected List<RegionPlan>
FavoredStochasticBalancer.balanceTable
(TableName tableName, Map<ServerName, List<RegionInfo>> loadOfOneTable) protected List<RegionPlan>
SimpleLoadBalancer.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 List<RegionPlan>
StochasticLoadBalancer.balanceTable
(TableName tableName, Map<ServerName, List<RegionInfo>> loadOfOneTable) Given the cluster state this will try and approach an optimal balance.private List<RegionPlan>
StochasticLoadBalancer.createRegionPlans
(BalancerClusterState cluster) Create all of the RegionPlan's needed to move from the initial cluster state to the desired state.Modifier and TypeMethodDescriptionprivate void
SimpleLoadBalancer.addRegionPlan
(org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<RegionPlan> regionsToMove, boolean fetchFromTail, ServerName sn, List<RegionPlan> regionsToReturn) Add a region from the head or tail to the List of regions to return.private void
SimpleLoadBalancer.addRegionPlan
(org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<RegionPlan> regionsToMove, boolean fetchFromTail, ServerName sn, List<RegionPlan> regionsToReturn) Add a region from the head or tail to the List of regions to return.private void
SimpleLoadBalancer.balanceOverall
(List<RegionPlan> regionsToReturn, Map<ServerName, SimpleLoadBalancer.BalanceInfo> serverBalanceInfo, boolean fetchFromTail, org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<RegionPlan> regionsToMove, int max, int min) If we need to balanceoverall, we need to add one more round to peel off one region from each max.private void
SimpleLoadBalancer.balanceOverall
(List<RegionPlan> regionsToReturn, Map<ServerName, SimpleLoadBalancer.BalanceInfo> serverBalanceInfo, boolean fetchFromTail, org.apache.hbase.thirdparty.com.google.common.collect.MinMaxPriorityQueue<RegionPlan> regionsToMove, int max, int min) If we need to balanceoverall, we need to add one more round to peel off one region from each max.private void
StochasticLoadBalancer.sendRegionPlansToRingBuffer
(List<RegionPlan> plans, double currentCost, double initCost, String initFunctionTotalCosts, long step) -
Uses of RegionPlan in org.apache.hadoop.hbase.rsgroup
Modifier and TypeMethodDescriptionRSGroupBasedLoadBalancer.balanceCluster
(Map<TableName, Map<ServerName, List<RegionInfo>>> loadOfAllTable) Balance by RSGroup.private Pair<Map<TableName,
Map<ServerName, List<RegionInfo>>>, List<RegionPlan>> RSGroupBasedLoadBalancer.correctAssignments
(Map<TableName, Map<ServerName, List<RegionInfo>>> existingAssignments)