Reference documentation and code samples for the Google Cloud Run V2 Client class ResourceRequirements.
ResourceRequirements describes the compute resource requirements.
Generated from protobuf message google.cloud.run.v2.ResourceRequirements
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ limits
array| Google\Protobuf\Internal\MapField
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
↳ cpu_idle
bool
Determines whether CPU should be throttled or not outside of requests.
↳ startup_cpu_boost
bool
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.
getLimits
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
setLimits
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
$this
getCpuIdle
Determines whether CPU should be throttled or not outside of requests.
bool
setCpuIdle
Determines whether CPU should be throttled or not outside of requests.
var
bool
$this
getStartupCpuBoost
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.
bool
setStartupCpuBoost
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.
var
bool
$this