Skip to main content
Control how your deployment scales based on traffic and load.

Configuration options

Load target options (use as --load-targets <key>=<value>[,<key>=<value>...]):
  • default=<Fraction> - General load target from 0 to 1
  • tokens_generated_per_second=<Integer> - Desired tokens per second per replica
  • prompt_tokens_per_second=<Integer> - Desired prompt tokens per second per replica
  • requests_per_second=<Number> - Desired requests per second per replica
  • concurrent_requests=<Number> - Desired concurrent requests per replica
When multiple targets are specified, the maximum replica count across all is used.

Common patterns

Scale to zero when idle to minimize costs:
Best for: Development, testing, or intermittent production workloads.

Scaling from zero behavior

When a deployment is scaled to zero and receives a request, the system immediately returns a 503 error with the DEPLOYMENT_SCALING_UP error code while initiating the scale-up process:
Requests to a scaled-to-zero deployment are not queued. Your application must implement retry logic to handle 503 responses while the deployment scales up.

Handling scale-from-zero responses

Implement retry logic with exponential backoff to gracefully handle scale-up delays:
Cold start times vary depending on model size—larger models may take longer to download and initialize. If you need instant responses without cold starts, set --min-replica-count 1 or higher to keep replicas always running.
Deployments with min replicas = 0 are auto-deleted after 7 days of no traffic. Reserved capacity guarantees availability during scale-up.