public static class DistributionThresholdUtils.ResourcePercentageThresholds extends Object
Resource
distribution, in percentages.Modifier and Type | Method and Description |
---|---|
double |
balanceLowerPercent()
The lower limit of the balance threshold, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
double |
balanceUpperPercent()
The upper limit of the balance threshold, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
static DistributionThresholdUtils.ResourcePercentageThresholds |
compute(ClusterModel clusterModel,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean validatePercentages)
Computes the low utilization, lower limit and upper limit thresholds based on which a distribution goal
will decide whether to move resources.
|
boolean |
equals(Object o) |
int |
hashCode() |
double |
lowUtilizationPercent()
Returns the low utilization threshold for this goal, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
double |
meanUtilizationPercent()
Returns the mean utilization threshold within the range [0.0, 1.0] for this goal
as calculated as part of this optimization run.
|
Resource |
resource() |
String |
toString() |
public double balanceUpperPercent()
balanceLowerPercent()
and balanceUpperPercent()
.public double balanceLowerPercent()
balanceLowerPercent()
and balanceUpperPercent()
.public double lowUtilizationPercent()
public double meanUtilizationPercent()
Broker.Strategy
and some goals may have previously optimized the cluster model).
Balance upper percent and lower percent are calculated based on this value.public Resource resource()
public static DistributionThresholdUtils.ResourcePercentageThresholds compute(ClusterModel clusterModel, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean validatePercentages)