Package org.apache.hadoop.hbase.master
Class AssignmentVerificationReport
java.lang.Object
org.apache.hadoop.hbase.master.AssignmentVerificationReport
Helper class that is used by RegionPlacementMaintainer to print information for favored nodes
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private float
private float
private float
private boolean
private int[]
private float[]
private boolean
private Set<ServerName>
private static final org.slf4j.Logger
private float
private Set<ServerName>
private float
private Set<ServerName>
private int
private float
private Set<ServerName>
private float
private Set<ServerName>
private int
private Set<ServerName>
private List<RegionInfo>
private List<RegionInfo>
private TableName
private int
private int
private int
private List<RegionInfo>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillUp
(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, Map<String, Map<String, Float>> regionLocalityMap) void
fillUpDispersion
(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan) Use this to project the dispersion scoresReturn a list which contains 3 elements: average dispersion score, max dispersion score and min dispersion score as first, second and third elements, respectively.(package private) List<RegionInfo>
Return the regions not assigned to its favored nodes(package private) int
Return the number of regions based on the position (primary/secondary/ tertiary) assigned to their favored nodes(package private) List<RegionInfo>
Return the regions without favored nodes(package private) int
Return the number of regions assigned to their favored nodes(package private) List<RegionInfo>
Return the unassigned regionsvoid
print
(boolean isDetailMode) private void
printHServerAddressSet
(Set<ServerName> serverSet)
-
Field Details
-
LOG
-
tableName
-
enforceLocality
-
isFilledUp
-
totalRegions
-
totalRegionServers
-
unAssignedRegionsList
-
regionsWithoutValidFavoredNodes
-
nonFavoredAssignedRegionList
-
totalFavoredAssignments
-
favoredNodes
-
favoredNodesLocalitySummary
-
actualLocalitySummary
-
avgRegionsOnRS
-
maxRegionsOnRS
-
minRegionsOnRS
-
mostLoadedRSSet
-
leastLoadedRSSet
-
avgDispersionScore
-
maxDispersionScore
-
maxDispersionScoreServerSet
-
minDispersionScore
-
minDispersionScoreServerSet
-
avgDispersionNum
-
maxDispersionNum
-
maxDispersionNumServerSet
-
minDispersionNum
-
minDispersionNumServerSet
-
-
Constructor Details
-
AssignmentVerificationReport
public AssignmentVerificationReport()
-
-
Method Details
-
fillUp
-
fillUpDispersion
public void fillUpDispersion(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan) Use this to project the dispersion scores -
getDispersionInformation
Return a list which contains 3 elements: average dispersion score, max dispersion score and min dispersion score as first, second and third elements, respectively. -
print
-
getUnassignedRegions
Return the unassigned regions- Returns:
- unassigned regions
-
getRegionsWithoutValidFavoredNodes
Return the regions without favored nodes- Returns:
- regions without favored nodes
-
getNonFavoredAssignedRegions
Return the regions not assigned to its favored nodes- Returns:
- regions not assigned to its favored nodes
-
getTotalFavoredAssignments
Return the number of regions assigned to their favored nodes- Returns:
- number of regions assigned to their favored nodes
-
getNumRegionsOnFavoredNodeByPosition
Return the number of regions based on the position (primary/secondary/ tertiary) assigned to their favored nodes- Returns:
- the number of regions
-
printHServerAddressSet
-