| Package | Description |
|---|---|
| org.apache.hadoop.hbase.master | |
| org.apache.hadoop.hbase.master.assignment | |
| org.apache.hadoop.hbase.master.balancer | |
| org.apache.hadoop.hbase.rsgroup |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RegionPlan> |
LoadBalancer.balanceCluster(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState)
Perform the major balance operation
|
java.util.List<RegionPlan> |
LoadBalancer.balanceCluster(TableName tableName,
java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState)
Perform the major balance operation
|
| Modifier and Type | Method and Description |
|---|---|
int |
RegionPlan.RegionPlanComparator.compare(RegionPlan l,
RegionPlan r) |
int |
RegionPlan.compareTo(RegionPlan other)
Compare the region info.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MasterCoprocessorHost.postBalance(java.util.List<RegionPlan> plans) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<byte[]> |
AssignmentManager.moveAsync(RegionPlan regionPlan) |
| Constructor and Description |
|---|
MoveRegionProcedure(MasterProcedureEnv env,
RegionPlan plan,
boolean check) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RegionPlan> |
StochasticLoadBalancer.balanceCluster(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState)
Given the cluster state this will try and approach an optimal balance.
|
java.util.List<RegionPlan> |
SimpleLoadBalancer.balanceCluster(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterMap)
Generate a global load balancing plan according to the specified map of
server information to the most loaded regions of each server.
|
java.util.List<RegionPlan> |
FavoredStochasticBalancer.balanceCluster(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState) |
java.util.List<RegionPlan> |
StochasticLoadBalancer.balanceCluster(TableName tableName,
java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState) |
java.util.List<RegionPlan> |
SimpleLoadBalancer.balanceCluster(TableName tableName,
java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState) |
protected java.util.List<RegionPlan> |
BaseLoadBalancer.balanceMasterRegions(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterMap)
Balance the regions that should be on master regionserver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleLoadBalancer.balanceOverall(java.util.List<RegionPlan> regionsToReturn,
java.util.Map<ServerName,org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer.BalanceInfo> serverBalanceInfo,
boolean fetchFromTail,
<any> 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.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RegionPlan> |
RSGroupBasedLoadBalancer.balanceCluster(java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState) |
java.util.List<RegionPlan> |
RSGroupBasedLoadBalancer.balanceCluster(TableName tableName,
java.util.Map<ServerName,java.util.List<RegionInfo>> clusterState) |