Drain Node
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/admin/cluster/nodes/:nodeId/drain | POST | Yes |
Marks a node as draining. It's immediately excluded from new object placement, and a cluster-wide rebalance walk is triggered to migrate its data onto the remaining active nodes. Any outstanding replication task that exists to keep this node in sync as a responsible replica (a write straggler catch-up, or a rebalance copy) is cancelled at the same time, since draining excludes it from placement - continuing to retry those would just be wasted effort. Tasks for this node cleaning up its own now-unowned copies are left alone; that's exactly the mechanism that empties its disk before it's finally stopped.
Pending webhook deliveries and bucket replication tasks owned by the node are reassigned to a still-active peer as part of the drain - nothing else could regenerate them once the node is gone. The new status is pushed to every live peer as an authoritative message and the call waits for them to acknowledge it, so when it returns no node is still placing data on the drained one, and a stale heartbeat gossiped afterwards cannot flip it back to active.
Path Parameters
Response
Returns 200 OK on success.
Errors
| Status | Reason |
|---|---|
404 | Node not found |