mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
44 lines
2.5 KiB
Plaintext
44 lines
2.5 KiB
Plaintext
:_content-type: ASSEMBLY
|
|
[id="serverless-autoscaling-developer"]
|
|
= Autoscaling
|
|
include::_attributes/common-attributes.adoc[]
|
|
:context: serverless-autoscaling-developer
|
|
|
|
toc::[]
|
|
|
|
Knative Serving provides automatic scaling, or _autoscaling_, for applications to match incoming demand. For example, if an application is receiving no traffic, and scale-to-zero is enabled, Knative Serving scales the application down to zero replicas. If scale-to-zero is disabled, the application is scaled down to the minimum number of replicas configured for applications on the cluster. Replicas can also be scaled up to meet demand if traffic to the application increases.
|
|
|
|
ifdef::openshift-enterprise[]
|
|
Autoscaling settings for Knative services can be global settings that are configured by cluster administrators, or per-revision settings that are configured for individual services.
|
|
endif::[]
|
|
|
|
ifdef::openshift-dedicated,openshift-rosa[]
|
|
Autoscaling settings for Knative services can be global settings that are configured by cluster or dedicated administrators, or per-revision settings that are configured for individual services.
|
|
endif::[]
|
|
|
|
You can modify per-revision settings for your services by using the {product-title} web console, by modifying the YAML file for your service, or by using the Knative (`kn`) CLI.
|
|
|
|
[NOTE]
|
|
====
|
|
Any limits or targets that you set for a service are measured against a single instance of your application. For example, setting the `target` annotation to `50` configures the autoscaler to scale the application so that each revision handles 50 requests at a time.
|
|
====
|
|
|
|
[id="serverless-autoscaling-developer-scale-bounds"]
|
|
== Scale bounds
|
|
|
|
Scale bounds determine the minimum and maximum numbers of replicas that can serve an application at any given time. You can set scale bounds for an application to help prevent cold starts or control computing costs.
|
|
|
|
// minscale docs
|
|
include::modules/serverless-autoscaling-developer-minscale.adoc[leveloffset=+2]
|
|
include::modules/serverless-autoscaling-minscale-kn.adoc[leveloffset=+3]
|
|
|
|
// maxscale docs
|
|
include::modules/serverless-autoscaling-developer-maxscale.adoc[leveloffset=+2]
|
|
include::modules/serverless-autoscaling-maxscale-kn.adoc[leveloffset=+3]
|
|
|
|
// concurrency
|
|
include::modules/serverless-about-concurrency.adoc[leveloffset=+1]
|
|
include::modules/serverless-concurrency-limits-configure-soft.adoc[leveloffset=+2]
|
|
include::modules/serverless-concurrency-limits-configure-hard.adoc[leveloffset=+2]
|
|
include::modules/serverless-target-utilization.adoc[leveloffset=+2]
|