class K8S::Api::Autoscaling::V2beta2::HPAScalingRules

Overview

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.

Included Modules

Defined in:

versions/v1.21/api/autoscaling/v2beta2/hpa_scaling_rules.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, policies : Array? = nil, select_policy : String? = nil, stabilization_window_seconds : Int32? = nil) #

[View source]

Instance Method Detail


[View source]
def policies=(policies : Array(Api::Autoscaling::V2beta2::HPAScalingPolicy)?) #

[View source]
def select_policy : String? #

[View source]
def select_policy=(select_policy : String?) #

[View source]
def stabilization_window_seconds : Int32? #

[View source]
def stabilization_window_seconds=(stabilization_window_seconds : Int32?) #

[View source]