io.k8s.api.autoscaling.v2.HPAScalingRules
See theHPAScalingRules companion object
final case class HPAScalingRules(policies: Option[Seq[HPAScalingPolicy]], selectPolicy: Option[String], stabilizationWindowSeconds: Option[Int], tolerance: Option[Quantity])
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance.
Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)
Attributes
- Companion
- object
- Source
- HPAScalingRules.scala
- Graph
-
- Supertypes
Members list
In this article