Class RunConfig
Additional configuration to apply to the Cloud Run
service
.
Implements
Inherited Members
Namespace: Google.Apis.FirebaseAppHosting.v1.Data
Assembly: Google.Apis.FirebaseAppHosting.v1.dll
Syntax
public class RunConfig : IDirectResponseSchema
Properties
Concurrency
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.
Declaration
[JsonProperty("concurrency")]
public virtual int? Concurrency { get; set; }
Property Value
Type | Description |
---|---|
int? |
Cpu
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
Declaration
[JsonProperty("cpu")]
public virtual float? Cpu { get; set; }
Property Value
Type | Description |
---|---|
float? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxInstances
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.
Declaration
[JsonProperty("maxInstances")]
public virtual int? MaxInstances { get; set; }
Property Value
Type | Description |
---|---|
int? |
MemoryMib
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
Declaration
[JsonProperty("memoryMib")]
public virtual int? MemoryMib { get; set; }
Property Value
Type | Description |
---|---|
int? |
MinInstances
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.
Declaration
[JsonProperty("minInstances")]
public virtual int? MinInstances { get; set; }
Property Value
Type | Description |
---|---|
int? |