[Serverless Knative] Knative Docs - Configuring targets
Targets
Configuring a target provide the Autoscaler with a value that it tries to maintain for the configured metric for a revision. See the metrics - https://knative.dev/docs/serving/autoscaling/autoscaling-metrics/ documentation for more information about configurable metric types.
The target
annotation, used to configure per-revision targets, is metric agnostic. This means the target is simply an integer value, which can be applied for any metric type.
Configuring targets
-
Global settings key:
container-concurrency-target-default
. For more information, see the documentation on metrics - https://knative.dev/docs/serving/autoscaling/autoscaling-metrics/. -
Per-revision annotation key:
autoscaling.knative.dev/target
-
Possible values: An integer (metric agnostic).
-
Default:
"100"
forcontainer-concurrency-target-default
. There is no default value set for thetarget
annotation.
Target annotation - Per-revision
1 | apiVersion: serving.knative.dev/v1 |
Concurrency target - Global (ConfigMap)
1 | apiVersion: v1 |
apiVersion: operator.knative.dev/v1alpha1
1 | kind: KnativeServing |
References
[1] Configuring targets - Knative - https://knative.dev/docs/serving/autoscaling/autoscaling-targets/
[2] Home - Knative - https://knative.dev/docs/
[3] metrics - https://knative.dev/docs/serving/autoscaling/autoscaling-metrics/
[4] About autoscaling - Knative - https://knative.dev/docs/serving/autoscaling/