Cloud Run V2 API - Class Google::Cloud::Run::V2::RevisionScaling (v0.32.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::RevisionScaling.

Settings for revision-level scaling settings.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#concurrency_utilization

def concurrency_utilization() -> ::Float
Returns
  • (::Float) — Optional. Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

#concurrency_utilization=

def concurrency_utilization=(value) -> ::Float
Parameter
  • value (::Float) — Optional. Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.
Returns
  • (::Float) — Optional. Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

#cpu_utilization

def cpu_utilization() -> ::Float
Returns
  • (::Float) — Optional. Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.90 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

#cpu_utilization=

def cpu_utilization=(value) -> ::Float
Parameter
  • value (::Float) — Optional. Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.90 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.
Returns
  • (::Float) — Optional. Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.90 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled.

#max_instance_count

def max_instance_count() -> ::Integer
Returns
  • (::Integer) —

    Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of

    1. For more information see https://cloud.google.com/run/docs/configuring/max-instances

#max_instance_count=

def max_instance_count=(value) -> ::Integer
Parameter
  • value (::Integer) —

    Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of

    1. For more information see https://cloud.google.com/run/docs/configuring/max-instances
Returns
  • (::Integer) —

    Optional. Maximum number of serving instances that this resource should have. When unspecified, the field is set to the server default value of

    1. For more information see https://cloud.google.com/run/docs/configuring/max-instances

#min_instance_count

def min_instance_count() -> ::Integer
Returns
  • (::Integer) — Optional. Minimum number of serving instances that this resource should have.

#min_instance_count=

def min_instance_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Optional. Minimum number of serving instances that this resource should have.
Returns
  • (::Integer) — Optional. Minimum number of serving instances that this resource should have.