scale_replicas_down
Lower a production deployment's replica count with a dry-run preview to protect in-flight requests. The change is reversible to the prior replica count.
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 |