View Source GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements (google_api_run v0.30.0)

ResourceRequirements describes the compute resource requirements.

Attributes

  • cpuIdle (type: boolean(), default: nil) - Determines whether CPU is only allocated during requests (true by default). However, if ResourceRequirements is set, the caller must explicitly set this field to true to preserve the default behavior.
  • limits (type: map(), default: nil) - Only memory and cpu keys in the map 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
  • startupCpuBoost (type: boolean(), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Run.V2.Model.GoogleCloudRunV2ResourceRequirements{
  cpuIdle: boolean() | nil,
  limits: map() | nil,
  startupCpuBoost: boolean() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.