public class DistributionThresholdUtils extends Object
ResourceDistributionGoal
, ReplicaDistributionAbstractGoal
)Modifier and Type | Class and Description |
---|---|
static class |
DistributionThresholdUtils.ReplicaThresholds
A POJO that holds particular thresholds related to the balanced distribution of number of replicas.
|
static class |
DistributionThresholdUtils.ResourcePercentageThresholds
A POJO that holds particular thresholds related to the balance of particular
Resource distribution, in percentages. |
Modifier and Type | Field and Description |
---|---|
static double |
BALANCE_MARGIN |
Constructor and Description |
---|
DistributionThresholdUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
clusterUtilizationAverage(ClusterModel clusterModel,
Resource resource)
Computes the average utilization of the cluster for a given resource.
|
public static final double BALANCE_MARGIN
public static double clusterUtilizationAverage(ClusterModel clusterModel, Resource resource)