com.coralogix.zio.k8s.model.autoscaling.v2beta2
HPAScalingRules
Companion object HPAScalingRules
case class HPAScalingRules(policies: Optional[Vector[HPAScalingPolicy]] = Optional.Absent, selectPolicy: Optional[String] = Optional.Absent, stabilizationWindowSeconds: Optional[Int] = Optional.Absent) extends Product with Serializable
HPAScalingRules configures the scaling behavior for one direction. These 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.
- policies
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
- selectPolicy
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
- stabilizationWindowSeconds
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
- Alphabetic
- By Inheritance
- HPAScalingRules
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
HPAScalingRules(policies: Optional[Vector[HPAScalingPolicy]] = Optional.Absent, selectPolicy: Optional[String] = Optional.Absent, stabilizationWindowSeconds: Optional[Int] = Optional.Absent)
- policies
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
- selectPolicy
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
- stabilizationWindowSeconds
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getPolicies: IO[K8sFailure, Vector[HPAScalingPolicy]]
policies is a list of potential scaling polices which can be used during scaling.
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getSelectPolicy: IO[K8sFailure, String]
selectPolicy is used to specify which policy should be used.
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getStabilizationWindowSeconds: IO[K8sFailure, Int]
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down.
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val policies: Optional[Vector[HPAScalingPolicy]]
- val selectPolicy: Optional[String]
- val stabilizationWindowSeconds: Optional[Int]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated