public final class BalancingThresholdsFactory extends Object
Constructor and Description |
---|
BalancingThresholdsFactory() |
Modifier and Type | Method and Description |
---|---|
static ResourceUtilizationRatioThresholds |
computeAbsoluteThresholds(ClusterModel clusterModel,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean needValidation)
Computes the low utilization, lower limit and upper limit thresholds based on which a distribution goal will decide
whether to move resources.
|
static ResourceUtilizationRatioThresholds |
computeAbsoluteThresholdsForCell(Cell cell,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean needValidation)
Computes the mean utilization ratio, low utilization, lower limit and upper limit thresholds for a cell, used by
distribution goals to base their decisions upon.
|
static ResourceUtilizationRatioThresholds |
computeRelativeThresholds(ClusterModel clusterModel,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean needValidation)
Computes the low utilization, lower limit and upper limit thresholds based on which a distribution goal will decide
whether to move resources.
|
static ResourceUtilizationRatioThresholds |
computeRelativeThresholdsForCell(Cell cell,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean needValidation)
Computes the mean utilization ratio, low utilization, lower limit and upper limit thresholds for a cell, used by
distribution goals to base their decisions upon.
|
public static ResourceUtilizationRatioThresholds computeRelativeThresholds(ClusterModel clusterModel, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean needValidation)
The thresholds are values within [0, 1] interval. They are calculated with a fixed percentage relative to the mean resource utilization of the whole cluster. Therefore, the balancing band defined by the lower thresholds and upper thresholds are positively correlated to the mean utilization ratio.
public static ResourceUtilizationRatioThresholds computeAbsoluteThresholds(ClusterModel clusterModel, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean needValidation)
The thresholds are values within [0, 1] interval. They are calculated
public static ResourceUtilizationRatioThresholds computeRelativeThresholdsForCell(Cell cell, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean needValidation)
computeRelativeThresholds(ClusterModel, OptimizationOptions, BalancingConstraint,
Resource, boolean)
public static ResourceUtilizationRatioThresholds computeAbsoluteThresholdsForCell(Cell cell, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean needValidation)
computeAbsoluteThresholds(ClusterModel, OptimizationOptions, BalancingConstraint,
Resource, boolean)