drain_replica
Gracefully drain a replica by finishing in-flight requests and blocking new ones. Preview with dry_run.
Instructions
[WRITE][risk=high] Gracefully drain one replica (finish in-flight, take no new).
Pass dry_run=True to preview.
Args: application: Serve application name. deployment: Deployment name. replica_id: Replica id (from replica_list). dry_run: If True, preview without draining. target: Inference target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| deployment | Yes | ||
| replica_id | Yes | ||
| application | Yes |