scale_replicas_down
Reduce replica count on production deployments to save resources or test scaling. Preview changes with dry run to avoid disrupting in-flight requests.
Instructions
[WRITE][risk=high] Lower a deployment's replica count on prod (reversible → prior).
Fewer replicas can strand in-flight requests — pass dry_run=True to preview.
Args: application: Serve application name. deployment: Deployment name. num_replicas: New (lower) replica count. dry_run: If True, preview without scaling. target: Inference target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| deployment | Yes | ||
| application | Yes | ||
| num_replicas | Yes |