Decommission Node
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/admin/cluster/nodes/:nodeId/decommission | POST | Yes |
Marks an already-draining node as removed - the final step of taking it out of the cluster for good. This is what tells the surviving nodes to stop reaching out to it entirely.
A draining node and a removed node are both excluded from new placement, so why the distinction? A draining node is still a live member that may hold records mid-migration, so every cluster-wide metadata read still fans out to it. A removed node is gone: its data has migrated off and its process is about to stop. Left as draining, its soon-dead address is probed on every listing - each one paying a timeout, and worse, coming back permanently "incomplete", which suppresses the background pass that reconciles deletions. Marking it removed lets the cluster finally leave it alone.
draining and returns 409 otherwise.active on boot.The scale-down.sh helper shipped with the Helm chart calls this automatically once a drain completes, so on Kubernetes you rarely invoke it by hand.
Path Parameters
Response
Returns 200 OK on success.
Errors
| Status | Reason |
|---|---|
404 | Node not found |
409 | Node is not draining - drain it first |