Package | Description |
---|---|
org.apache.hadoop.hbase.favored | |
org.apache.hadoop.hbase.master |
Modifier and Type | Field and Description |
---|---|
private FavoredNodesPlan |
FavoredNodesManager.globalFavoredNodesAssignmentPlan |
Modifier and Type | Method and Description |
---|---|
(package private) void |
FavoredNodesPlan.updateFavoredNodesMap(FavoredNodesPlan fnp)
Add to existing Map of FavoredNodes.
|
Modifier and Type | Field and Description |
---|---|
private FavoredNodesPlan |
SnapshotOfRegionAssignmentFromMeta.existingAssignmentPlan
the existing assignment plan in the hbase:meta region
|
Modifier and Type | Method and Description |
---|---|
FavoredNodesPlan |
SnapshotOfRegionAssignmentFromMeta.getExistingAssignmentPlan()
Get the favored nodes plan
|
FavoredNodesPlan |
RegionPlacementMaintainer.getNewAssignmentPlan() |
Modifier and Type | Method and Description |
---|---|
void |
RegionPlacementMaintainer.checkDifferencesWithOldPlan(Map<TableName,Integer> movesPerTable,
Map<String,Map<String,Float>> regionLocalityMap,
FavoredNodesPlan newPlan)
Compares two plans and check whether the locality dropped or increased (prints the information
as a string) also prints the baseline locality
|
void |
AssignmentVerificationReport.fillUpDispersion(TableName tableName,
SnapshotOfRegionAssignmentFromMeta snapshot,
FavoredNodesPlan newPlan)
Use this to project the dispersion scores nnn
|
private void |
RegionPlacementMaintainer.genAssignmentPlan(TableName tableName,
SnapshotOfRegionAssignmentFromMeta assignmentSnapshot,
Map<String,Map<String,Float>> regionLocalityMap,
FavoredNodesPlan plan,
boolean munkresForSecondaryAndTertiary)
Generate the assignment plan for the existing table nnnn * @param
munkresForSecondaryAndTertiary if set on true the assignment plan for the tertiary and
secondary will be generated with Munkres algorithm, otherwise will be generated using
placeSecondaryAndTertiaryRS n
|
Map<TableName,Integer> |
RegionPlacementMaintainer.getRegionsMovement(FavoredNodesPlan newPlan)
Return how many regions will move per table since their primary RS will change
|
static void |
RegionPlacementMaintainer.printAssignmentPlan(FavoredNodesPlan plan)
Print the assignment plan to the system output stream n
|
void |
RegionPlacementMaintainer.printDispersionScores(TableName table,
SnapshotOfRegionAssignmentFromMeta snapshot,
int numRegions,
FavoredNodesPlan newPlan,
boolean simplePrint) |
void |
RegionPlacementMaintainer.updateAssignmentPlan(FavoredNodesPlan plan) |
void |
RegionPlacementMaintainer.updateAssignmentPlanToMeta(FavoredNodesPlan plan)
Update the assignment plan into hbase:meta
|
private void |
RegionPlacementMaintainer.updateAssignmentPlanToRegionServers(FavoredNodesPlan plan)
Update the assignment plan to all the region servers nn
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.