Class RightSizeRule

java.lang.Object
com.eqixiac.equinix.design.estate.rules.RightSizeRule
All Implemented Interfaces:
EstateRule

public final class RightSizeRule extends Object implements 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.