Modifier and Type | Method and Description |
---|---|
static void |
analyzePartitionStats(Collection<PartitionOwner> partitionOwnerList,
List<PartitionStats> allPartitionStats)
Check for imbalances on a per worker basis, by calculating the
mean, high and low workers by edges and vertices.
|
static int |
computePartitionCount(int availableWorkerCount,
ImmutableClassesGiraphConfiguration conf)
Compute the number of partitions, based on the configuration.
|
public static void analyzePartitionStats(Collection<PartitionOwner> partitionOwnerList, List<PartitionStats> allPartitionStats)
partitionOwnerList
- List of partition owners.allPartitionStats
- All the partition stats.public static int computePartitionCount(int availableWorkerCount, ImmutableClassesGiraphConfiguration conf)
availableWorkerCount
- Number of available workersconf
- Configuration.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.