Cloud Run V2 API - Class Google::Cloud::Run::V2::ResourceRequirements (v0.8.0)

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

ResourceRequirements describes the compute resource requirements.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cpu_idle

def cpu_idle() -> ::Boolean
Returns
  • (::Boolean) — Determines whether CPU should be throttled or not outside of requests.

#cpu_idle=

def cpu_idle=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Determines whether CPU should be throttled or not outside of requests.
Returns
  • (::Boolean) — Determines whether CPU should be throttled or not outside of requests.

#limits

def limits() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) —

    Only ´memory´ and 'cpu' are supported.

    Notes:

    • The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu.
      • For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits

#limits=

def limits=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) —

    Only ´memory´ and 'cpu' are supported.

    Notes:

    • The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu.
      • For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
Returns
  • (::Google::Protobuf::Map{::String => ::String}) —

    Only ´memory´ and 'cpu' are supported.

    Notes:

    • The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu.
      • For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits

#startup_cpu_boost

def startup_cpu_boost() -> ::Boolean
Returns
  • (::Boolean) — Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.

#startup_cpu_boost=

def startup_cpu_boost=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
Returns
  • (::Boolean) — Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.