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

RunConfig

import type { RunConfig } from "https://googleapis.deno.dev/v1/firebaseapphosting:v1.ts";

Additional configuration to apply to the Cloud Run service.

interface RunConfig {
concurrency?: number;
cpu?: number;
maxInstances?: number;
memoryMib?: number;
minInstances?: number;
}

§Properties

§
concurrency?: number
[src]

Optional. Maximum number of requests that each Cloud Run instance can receive. By default, each instance can receive Cloud Run's default of up to 80 requests at the same time. Concurrency can be set to any integer value up to 1000.

§
cpu?: number
[src]

Optional. Number of CPUs used for each serving instance. By default, cpu defaults to the Cloud Run's default of 1.0. CPU can be set to value 1, 2, 4, 6, or 8 CPUs, and for less than 1 CPU, a value from 0.08 to less than 1.00, in increments of 0.01. If you set a value of less than 1 CPU, you must set concurrency to 1, and CPU will only be allocated during request processing. Increasing CPUs limit may require increase in memory limits: - 4 CPUs: at least 2 GiB - 6 CPUs: at least 4 GiB - 8 CPUs: at least 4 GiB

§
maxInstances?: number
[src]

Optional. Number of Cloud Run instances to maintain at maximum for each revision. By default, each Cloud Run service scales out to Cloud Run's default of a maximum of 100 instances. The maximum max_instances limit is based on your quota. See https://cloud.google.com/run/docs/configuring/max-instances#limits.

§
memoryMib?: number
[src]

Optional. Amount of memory allocated for each serving instance in MiB. By default, memory defaults to the Cloud Run's default where each instance is allocated 512 MiB of memory. Memory can be set to any integer value between 128 to 32768. Increasing memory limit may require increase in CPUs limits:

  • Over 4 GiB: at least 2 CPUs - Over 8 GiB: at least 4 CPUs - Over 16 GiB: at least 6 CPUs - Over 24 GiB: at least 8 CPUs
§
minInstances?: number
[src]

Optional. Number of Cloud Run instances to maintain at minimum for each Cloud Run Service. By default, there are no minimum. Even if the service splits traffic across multiple revisions, the total number of instances for a service will be capped at this value.