defaults.replicas
Number of copies. An integer fixes the count; an object enables autoscaling.
- Type: integer or object
- Since: manifest v1
Accepted forms
- integer
- object: the full form, with the fields below
Example
Section titled “Example”defaults: replicas: 2defaults: replicas: min: 2 max: 6 scale_on: cpu: 70%Fields
Section titled “Fields”defaults.replicas.min
Fewest replicas. 0 allows scaling to zero.
- Type: integer
- Default:
1 - Range: 0 to 20
- Since: manifest v1
defaults: replicas: min: 2defaults.replicas.max
Most replicas.
- Type: integer
- Range: 1 to 20
- Since: manifest v1
defaults: replicas: max: 6scale_on
Section titled “scale_on”defaults.replicas.scale_on
Targets for horizontal autoscaling between min and max.
- Type: object
- Since: manifest v1
defaults: replicas: scale_on: cpu: 70% concurrency: 80defaults.replicas.scale_on.cpu
Average CPU use, as a percentage of the limit.
- Type: percent
- Since: manifest v1
defaults: replicas: scale_on: cpu: 70%memory
Section titled “memory”defaults.replicas.scale_on.memory
Average memory use, as a percentage of the limit.
- Type: percent
- Since: manifest v1
defaults: replicas: scale_on: memory: 80%concurrency
Section titled “concurrency”defaults.replicas.scale_on.concurrency
In-flight requests per replica, measured at the edge.
- Type: integer
- Range: 1 to …
- Since: manifest v1
defaults: replicas: scale_on: concurrency: 80See also
Section titled “See also”- defaults: all fields of
defaults - guv.yaml reference