Package | Description |
---|---|
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.master.balancer |
Modifier and Type | Method and Description |
---|---|
void |
MasterObserver.postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<RegionPlan> plans)
Called after the balancing plan has been submitted.
|
void |
BaseMasterObserver.postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<RegionPlan> plans) |
void |
BaseMasterAndRegionObserver.postBalance(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<RegionPlan> plans) |
Modifier and Type | Field and Description |
---|---|
(package private) NavigableMap<String,RegionPlan> |
AssignmentManager.regionPlans
Plans for region movement.
|
Modifier and Type | Method and Description |
---|---|
private RegionPlan |
AssignmentManager.getRegionPlan(HRegionInfo region,
boolean forceNewPlan) |
private RegionPlan |
AssignmentManager.getRegionPlan(HRegionInfo region,
ServerName serverToExclude,
boolean forceNewPlan) |
RegionPlan |
AssignmentManager.getRegionReopenPlan(HRegionInfo hri) |
Modifier and Type | Method and Description |
---|---|
List<RegionPlan> |
LoadBalancer.balanceCluster(Map<ServerName,List<HRegionInfo>> clusterState)
Perform the major balance operation
|
Modifier and Type | Method and Description |
---|---|
void |
AssignmentManager.addPlan(String encodedName,
RegionPlan plan)
Add a regionPlan for the specified region.
|
void |
AssignmentManager.balance(RegionPlan plan) |
int |
RegionPlan.RegionPlanComparator.compare(RegionPlan l,
RegionPlan r) |
int |
RegionPlan.compareTo(RegionPlan o)
Compare the region info.
|
Modifier and Type | Method and Description |
---|---|
void |
AssignmentManager.addPlans(Map<String,RegionPlan> plans)
Add a map of region plans.
|
void |
MasterCoprocessorHost.postBalance(List<RegionPlan> plans) |
Modifier and Type | Method and Description |
---|---|
List<RegionPlan> |
FavoredNodeLoadBalancer.balanceCluster(Map<ServerName,List<HRegionInfo>> clusterState) |
List<RegionPlan> |
StochasticLoadBalancer.balanceCluster(Map<ServerName,List<HRegionInfo>> clusterState)
Given the cluster state this will try and approach an optimal balance.
|
List<RegionPlan> |
SimpleLoadBalancer.balanceCluster(Map<ServerName,List<HRegionInfo>> clusterMap)
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> |
BaseLoadBalancer.balanceMasterRegions(Map<ServerName,List<HRegionInfo>> clusterMap)
Balance the regions that should be on master regionserver.
|
private List<RegionPlan> |
StochasticLoadBalancer.createRegionPlans(BaseLoadBalancer.Cluster cluster)
Create all of the RegionPlan's needed to move from the initial cluster state to the desired
state.
|
Modifier and Type | Method and Description |
---|---|
private void |
SimpleLoadBalancer.addRegionPlan(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(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.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.