GoogleCloudRunV2ResourceRequirementsArgs

data class GoogleCloudRunV2ResourceRequirementsArgs(val cpuIdle: Output<Boolean>? = null, val limits: Output<Map<String, String>>? = null, val startupCpuBoost: Output<Boolean>? = null) : ConvertibleToJava<GoogleCloudRunV2ResourceRequirementsArgs>

ResourceRequirements describes the compute resource requirements.

Constructors

Link copied to clipboard
fun GoogleCloudRunV2ResourceRequirementsArgs(cpuIdle: Output<Boolean>? = null, limits: Output<Map<String, String>>? = null, startupCpuBoost: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudRunV2ResourceRequirementsArgs

Properties

Link copied to clipboard
val cpuIdle: Output<Boolean>? = null

Determines whether CPU should be throttled or not outside of requests.

Link copied to clipboard
val limits: Output<Map<String, String>>? = null

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

Link copied to clipboard
val startupCpuBoost: Output<Boolean>? = null

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.