@InterfaceAudience.Private public class AssignmentVerificationReport extends Object
RegionPlacementMaintainer
to print
information for favored nodesConstructor and Description |
---|
AssignmentVerificationReport() |
Modifier and Type | Method and Description |
---|---|
void |
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 scores
|
List<Float> |
getDispersionInformation() |
(package private) List<RegionInfo> |
getNonFavoredAssignedRegions()
Return the regions not assigned to its favored nodes
|
(package private) int |
getNumRegionsOnFavoredNodeByPosition(FavoredNodesPlan.Position position)
Return the number of regions based on the position (primary/secondary/
tertiary) assigned to their favored nodes
|
(package private) List<RegionInfo> |
getRegionsWithoutValidFavoredNodes()
Return the regions without favored nodes
|
(package private) int |
getTotalFavoredAssignments()
Return the number of regions assigned to their favored nodes
|
(package private) List<RegionInfo> |
getUnassignedRegions()
Return the unassigned regions
|
void |
print(boolean isDetailMode) |
private void |
printHServerAddressSet(Set<ServerName> serverSet) |
private static final org.slf4j.Logger LOG
private boolean enforceLocality
private boolean isFilledUp
private int totalRegions
private int totalRegionServers
private List<RegionInfo> unAssignedRegionsList
private List<RegionInfo> regionsWithoutValidFavoredNodes
private List<RegionInfo> nonFavoredAssignedRegionList
private int totalFavoredAssignments
private int[] favoredNodes
private float[] favoredNodesLocalitySummary
private float actualLocalitySummary
private float avgRegionsOnRS
private int maxRegionsOnRS
private int minRegionsOnRS
private Set<ServerName> mostLoadedRSSet
private Set<ServerName> leastLoadedRSSet
private float avgDispersionScore
private float maxDispersionScore
private Set<ServerName> maxDispersionScoreServerSet
private float minDispersionScore
private Set<ServerName> minDispersionScoreServerSet
private float avgDispersionNum
private float maxDispersionNum
private Set<ServerName> maxDispersionNumServerSet
private float minDispersionNum
private Set<ServerName> minDispersionNumServerSet
public AssignmentVerificationReport()
public void fillUp(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, Map<String,Map<String,Float>> regionLocalityMap)
public void fillUpDispersion(TableName tableName, SnapshotOfRegionAssignmentFromMeta snapshot, FavoredNodesPlan newPlan)
tableName
- snapshot
- newPlan
- public List<Float> getDispersionInformation()
public void print(boolean isDetailMode)
List<RegionInfo> getUnassignedRegions()
List<RegionInfo> getRegionsWithoutValidFavoredNodes()
List<RegionInfo> getNonFavoredAssignedRegions()
int getTotalFavoredAssignments()
int getNumRegionsOnFavoredNodeByPosition(FavoredNodesPlan.Position position)
position
- private void printHServerAddressSet(Set<ServerName> serverSet)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.