Drain Node

Exclude a node from new placement and migrate its data off before removing it.
EndpointMethodAdmin Required
/api/v1/admin/cluster/nodes/:nodeId/drainPOSTYes

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.

Draining doesn't stop the node's process. Watch rebalance status drain to zero pending/failed tasks before actually stopping it - otherwise data it was still the sole holder of could be lost.

Path Parameters

nodeId
string required
The UUID of the node to drain, from List Nodes.

Response

Returns 200 OK on success.

Errors

StatusReason
404Node not found