mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
29 lines
835 B
Plaintext
29 lines
835 B
Plaintext
// Module is included in the following assemblies:
|
|
//
|
|
// serverless/knative_cli/knative-cli.adoc
|
|
|
|
[id="autoscaling-workflow_{context}"]
|
|
= Autoscaling workflow using `kn`
|
|
|
|
You can access autoscaling capabilities by using `kn` to modify Knative services without editing YAML files directly.
|
|
|
|
Use the `service create` and `service update` commands with the appropriate flags to configure the autoscaling behavior.
|
|
|
|
[cols="1,3",options="header"]
|
|
|====
|
|
| Flag
|
|
| Description
|
|
|
|
| `--concurrency-limit int`
|
|
| Hard limit of concurrent requests to be processed by a single replica.
|
|
|
|
| `--concurrency-target int`
|
|
| Recommendation for when to scale up based on the concurrent number of incoming requests. Defaults to `--concurrency-limit`.
|
|
|
|
| `--max-scale int`
|
|
| Maximum number of replicas.
|
|
|
|
| `--min-scale int`
|
|
| Minimum number of replicas.
|
|
|====
|