@Immutable public class IncrementalResourceDistributionStatsSnapshot extends Object
IncrementalResourceDistributionGoal
.Constructor and Description |
---|
IncrementalResourceDistributionStatsSnapshot(boolean isCellEnabled,
int cellId,
Map<Integer,Double> desiredIncrementalImprovementPercentageByBrokerId,
double incrementalLowerBoundPercentage,
double incrementalStepRatioPercentage,
double clusterMeanUtilizationPercentage,
double cellMeanUtilizationPercentage) |
Modifier and Type | Method and Description |
---|---|
int |
cellId() |
double |
cellMeanUtilizationPercentage() |
double |
clusterMeanUtilizationPercentage() |
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() |
boolean |
isCellEnabled() |
int |
numBrokersAboveLowerBoundThreshold() |
String |
toString() |
public IncrementalResourceDistributionStatsSnapshot(boolean isCellEnabled, int cellId, Map<Integer,Double> desiredIncrementalImprovementPercentageByBrokerId, double incrementalLowerBoundPercentage, double incrementalStepRatioPercentage, double clusterMeanUtilizationPercentage, double cellMeanUtilizationPercentage)
isCellEnabled
- true if cell is enabled in the cluster model being operated, false otherwisecellId
- the cell id for the associated incremental resource distribution stats snapshot.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.clusterMeanUtilizationPercentage
- the mean utilization percentage within the range [0.0, 1.0] of the given resource across the brokers
being balanced within the cluster, as calculated in the middle of this optimization run for brokers without cells.public int numBrokersAboveLowerBoundThreshold()
public double clusterMeanUtilizationPercentage()
public double cellMeanUtilizationPercentage()
public double incrementalStepRatio()
public double desiredIncrementalImprovementPercent(int brokerId)
brokerId
, denoting the percentage amount of a given resource we want to move for this broker.public boolean isCellEnabled()
public int cellId()