Class RightSizeRule
java.lang.Object
com.eqixiac.equinix.design.estate.rules.RightSizeRule
- All Implemented Interfaces:
EstateRule
FindingCategory.RIGHT_SIZE_DOWN and FindingCategory.RIGHT_SIZE_UP: a live
connection whose 95th-percentile use is far below (or close to) its provisioned bandwidth.
The target tier is the smallest of EstateThresholds.bandwidthTiersMbps() at or above
p95 × EstateThresholds.headroomFactor(). Down: p95 below
EstateThresholds.rightSizeDownBelowPercent() and the target is smaller than today's
bandwidth. Up: p95 above EstateThresholds.rightSizeUpAbovePercent() or the peak reached the
provisioned bandwidth; the target is the next tier that gives the headroom. The monthly price
difference uses the connection's current term. Connections without enough samples
(EstateThresholds.minUtilizationSamples()) are skipped: no data, no recommendation. A
connection with no traffic at all is left to IdleResourceRule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EstateInventory inv, UtilizationSnapshot util, RuleContext ctx) Evaluates the rule.name()A short, stable name, for exampleright-size.
-
Constructor Details
-
RightSizeRule
public RightSizeRule()
-
-
Method Details
-
name
Description copied from interface:EstateRuleA short, stable name, for exampleright-size.- Specified by:
namein interfaceEstateRule- Returns:
- the name
-
evaluate
Description copied from interface:EstateRuleEvaluates the rule.- Specified by:
evaluatein interfaceEstateRule- Parameters:
inv- the snapshotutil- the utilisation (UtilizationSnapshot.none()when not collected)ctx- pricing, thresholds and the reference time- Returns:
- the findings, possibly empty
-