|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.utils.PartitionBalanceUtils
public class PartitionBalanceUtils
PartitionBalanceUtils provides helper methods for interpreting, analyzing, and printing partition information. Most of these helper methods take one Cluster object, and possibly some other minor, simple arguments. The Cluster object defines the partition layout which is being interpreted/analzyed/printed.
Constructor Summary | |
---|---|
PartitionBalanceUtils()
|
Method Summary | |
---|---|
static java.lang.String |
analyzeInvalidMetadataRate(Cluster currentCluster,
java.util.List<StoreDefinition> currentStoreDefs,
Cluster finalCluster,
java.util.List<StoreDefinition> finalStoreDefs)
Compares current cluster with final cluster. |
static java.lang.String |
compressedListOfPartitionsInZone(Cluster cluster,
int zoneId)
Compress contiguous partitions into format "e-i" instead of "e, f, g, h, i". |
static java.lang.String |
getHotPartitionsDueToContiguity(Cluster cluster,
int hotContiguityCutoff)
Returns a pretty printed string of nodes that host specific "hot" partitions, where hot is defined as following a contiguous run of partitions of some length in another zone. |
static java.util.Map<java.lang.Integer,java.lang.Integer> |
getMapOfContiguousPartitionRunLengths(Cluster cluster,
int zoneId)
Determines a histogram of contiguous runs of partitions within a zone. |
static java.util.Map<java.lang.Integer,java.lang.Integer> |
getMapOfContiguousPartitions(Cluster cluster,
int zoneId)
Determines run length for each 'initial' partition ID. |
static java.lang.String |
getPrettyMapOfContiguousPartitionRunLengths(Cluster cluster,
int zoneId)
Pretty prints the output of getMapOfContiguousPartitionRunLengths |
static java.lang.String |
verboseClusterDump(Cluster cluster)
Prints the details of cluster xml in various formats. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionBalanceUtils()
Method Detail |
---|
public static java.lang.String compressedListOfPartitionsInZone(Cluster cluster, int zoneId)
cluster
- zoneId
-
public static java.util.Map<java.lang.Integer,java.lang.Integer> getMapOfContiguousPartitions(Cluster cluster, int zoneId)
cluster
- zoneId
-
public static java.util.Map<java.lang.Integer,java.lang.Integer> getMapOfContiguousPartitionRunLengths(Cluster cluster, int zoneId)
cluster
- zoneId
-
public static java.lang.String getPrettyMapOfContiguousPartitionRunLengths(Cluster cluster, int zoneId)
cluster
- zoneId
-
public static java.lang.String getHotPartitionsDueToContiguity(Cluster cluster, int hotContiguityCutoff)
cluster
- The cluster to analyzehotContiguityCutoff
- cutoff below which a contiguous run is not
hot.
public static java.lang.String verboseClusterDump(Cluster cluster)
cluster
-
public static java.lang.String analyzeInvalidMetadataRate(Cluster currentCluster, java.util.List<StoreDefinition> currentStoreDefs, Cluster finalCluster, java.util.List<StoreDefinition> finalStoreDefs)
currentCluster
- currentStoreDefs
- finalCluster
- finalStoreDefs
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |