Skip to content

Autoscaling

Knative Serving automatically adjusts the number of application replicas to match incoming demand. The Knative Pod Autoscaler (KPA) is enabled by default. You do not need to set concurrency or scale bounds to enable its default behavior for a Service.

When a Revision receives no traffic, KPA can scale it to zero if scale to zero is enabled and the lower scale bound allows it. New traffic causes replicas to start again. A positive minimum scale keeps replicas available instead. Cluster administrators control whether scale to zero is enabled.

Choose a page for what you want to do next:

Your goal Start here
Try scaling down to zero and back up Autoscaling in Quickstart, after deploying your first Service
Change a service's scaling target Set a concurrency target for a service, with readiness and configuration checks
Understand targets, hard limits, and spare capacity How concurrency affects autoscaling
Look up keys, defaults, and scopes Concurrency settings and scale bounds

Other configuration goals

Additional resources

  • Go autoscaling sample — run a load experiment after you have a working Serving environment.
  • KPA-specific settings — look up scaling windows and panic-mode settings.
  • Request flow — understand the Activator's role when requests arrive without available replica capacity.

We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.