Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudRunV2ResourceRequirements

import type { GoogleCloudRunV2ResourceRequirements } from "https://googleapis.deno.dev/v1/run:v2.ts";

ResourceRequirements describes the compute resource requirements.

interface GoogleCloudRunV2ResourceRequirements {
cpuIdle?: boolean;
limits?: {
[key: string]: string;
}
;
startupCpuBoost?: boolean;
}

§Properties

§
cpuIdle?: boolean
[src]

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?: {
[key: string]: string;
}
[src]

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?: boolean
[src]

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.