scale_replicas_down
Lower a production deployment's replica count to reduce inference capacity; the action is reversible, and dry_run previews changes to avoid stranding 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 |