Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::AutoscalingPolicyScaleInControl (v1.7.1)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::AutoscalingPolicyScaleInControl.

Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#max_scaled_in_replicas

def max_scaled_in_replicas() -> ::Google::Cloud::Compute::V1::FixedOrPercent
Returns
  • (::Google::Cloud::Compute::V1::FixedOrPercent) — Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

#max_scaled_in_replicas=

def max_scaled_in_replicas=(value) -> ::Google::Cloud::Compute::V1::FixedOrPercent
Parameter
  • value (::Google::Cloud::Compute::V1::FixedOrPercent) — Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
Returns
  • (::Google::Cloud::Compute::V1::FixedOrPercent) — Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.

#time_window_sec

def time_window_sec() -> ::Integer
Returns
  • (::Integer) — How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.

#time_window_sec=

def time_window_sec=(value) -> ::Integer
Parameter
  • value (::Integer) — How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
Returns
  • (::Integer) — How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.