Remove the reference to VPA (#2171)

* Remove the reference to VPA

We're not really using VPA, so fix the docs

* more settings
This commit is contained in:
Victor Agababov 2020-02-04 14:34:31 -08:00 committed by GitHub
parent 19518d7978
commit dda5f40953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 17 deletions

View File

@ -30,15 +30,18 @@ metadata:
name: config-autoscaler name: config-autoscaler
namespace: knative-serving namespace: knative-serving
data: data:
container-concurrency-target-default: 100 container-concurrency-target-default: "100"
container-concurrency-target-percentage: 1.0 container-concurrency-target-percentage: "0.7"
enable-scale-to-zero: true enable-scale-to-zero: "true"
enable-vertical-pod-autoscaling: false max-scale-up-rate: "1000"
max-scale-up-rate: 10 max-scale-down-rate: "2"
panic-window: 6s panic-window-percentage: "10"
scale-to-zero-grace-period: 30s panic-threshold-percentage: "200"
stable-window: 60s scale-to-zero-grace-period: "30s"
tick-interval: 2s stable-window: "60s"
tick-interval: "2s"
target-burst-capacity: "200"
requests-per-second-target-default: "200"
``` ```
# Configuring scale to zero for KPA # Configuring scale to zero for KPA
@ -52,7 +55,7 @@ following parameters in the ConfigMap.
running before it is scaled to zero (min: 6s). running before it is scaled to zero (min: 6s).
``` ```
scale-to-zero-grace-period: 30s scale-to-zero-grace-period: "30s"
``` ```
## stable-window ## stable-window
@ -61,14 +64,14 @@ When operating in a stable mode, the autoscaler operates on the average
concurrency over the stable window (min: 6s). concurrency over the stable window (min: 6s).
``` ```
stable-window: 60s stable-window: "60s"
``` ```
`stable-window` can also be configured in the Revision template as an `stable-window` can also be configured in the Revision template as an
annotation. annotation.
``` ```
autoscaling.knative.dev/window: 60s autoscaling.knative.dev/window: "60s"
``` ```
## enable-scale-to-zero ## enable-scale-to-zero
@ -95,14 +98,14 @@ limit) and is the recommended configuration for autoscaling in Knative.
The default value for concurrency target is specified in the ConfigMap as `100`. The default value for concurrency target is specified in the ConfigMap as `100`.
``` ```
`container-concurrency-target-default: 100` container-concurrency-target-default: "100"
``` ```
This value can be configured by adding or modifying the This value can be configured by adding or modifying the
`autoscaling.knative.dev/target` annotation value in the revision template. `autoscaling.knative.dev/target` annotation value in the revision template.
``` ```
autoscaling.knative.dev/target: 50 autoscaling.knative.dev/target: "50"
``` ```
#### containerConcurrency #### containerConcurrency
@ -126,8 +129,7 @@ containerConcurrency: 0 | 1 | 2-N
- A value of `2` or more will limit request concurrency to that value. - A value of `2` or more will limit request concurrency to that value.
- A value of `0` means the system should decide. - A value of `0` means the system should decide.
If there is no `/target` annotation, the autoscaler is configured as if `containerConcurrency` takes precedence over the `target` values.
`/target` == `containerConcurrency`.
## Configuring scale bounds (minScale and maxScale) ## Configuring scale bounds (minScale and maxScale)
@ -183,7 +185,7 @@ spec:
metadata: metadata:
annotations: annotations:
autoscaling.knative.dev/metric: cpu autoscaling.knative.dev/metric: cpu
autoscaling.knative.dev/target: 70 autoscaling.knative.dev/target: "70"
autoscaling.knative.dev/class: hpa.autoscaling.knative.dev autoscaling.knative.dev/class: hpa.autoscaling.knative.dev
``` ```
## Using the recommended autoscaling reconciler for custom Go implementations ## Using the recommended autoscaling reconciler for custom Go implementations