replica_restart
Determines if a specific Ray Serve replica can be restarted. If not, provides guidance to scale the deployment down/up or redeploy instead.
Instructions
[WRITE][risk=high] Restart one Serve replica — NOT available over Ray's REST API.
Ray Serve exposes no per-replica restart endpoint over REST; the controller respawns unhealthy replicas on its own. This tool refuses with a teaching error. To force a cycle, scale the deployment down then up, or redeploy. The dry_run preview reports the same unavailability rather than a false green.
Args: application: Serve application name. deployment: Deployment name. replica_id: Replica id (from replica_list). dry_run: If True, report availability without attempting a restart. 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 |