@Immutable public class IncrementalResourceDistributionStatsSnapshot extends Object
IncrementalResourceDistributionGoal
.Constructor and Description |
---|
IncrementalResourceDistributionStatsSnapshot(Map<Integer,Double> desiredIncrementalImprovementPercentageByBrokerId,
double incrementalLowerBoundPercentage,
double incrementalStepRatioPercentage,
double meanUtilizationPercentage) |
Modifier and Type | Method and Description |
---|---|
double |
desiredIncrementalImprovementPercent(int brokerId)
The incremental balancing threshold of the
brokerId , denoting the percentage amount of a given resource we want to move for this broker. |
double |
incrementalStepRatio() |
double |
meanUtilizationPercentage() |
int |
numBrokersAboveLowerBoundThreshold() |
String |
toString() |
public IncrementalResourceDistributionStatsSnapshot(Map<Integer,Double> desiredIncrementalImprovementPercentageByBrokerId, double incrementalLowerBoundPercentage, double incrementalStepRatioPercentage, double meanUtilizationPercentage)
desiredIncrementalImprovementPercentageByBrokerId
- a map of broker id to their desired incremental balancing percentage threshold
within the range [0.0, 1.0] of the Broker
denoting the percentage amount of Resource
we want to move for this broker.incrementalLowerBoundPercentage
- the percentage within the range [0.0, 1.0] denoting the lower bound of the incremental balancing threshold.incrementalStepRatioPercentage
- the percentage within the range [0.0, 1.0] denoting the size of the `desired - mean` utilization delta that this step of rebalancing should try to move.meanUtilizationPercentage
- the mean utilization percentage within the range [0.0, 1.0] of the given resource across the brokers
being balanced, as calculated in the middle of this optimization run.public int numBrokersAboveLowerBoundThreshold()
public double meanUtilizationPercentage()
public double incrementalStepRatio()
public double desiredIncrementalImprovementPercent(int brokerId)
brokerId
, denoting the percentage amount of a given resource we want to move for this broker.