Skip to main content

Preview rebalancing the pool

POST 

/pool/rebalance/plan

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request POST \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/pool/rebalance/plan"

Computes the rebalance plan: for every share with at least two branches, the files a rebalance would move from that share's own most-full disk to its own least-full disk to bring them within the skew tolerance, plus any path-preserving warnings, and the exact typed confirmation startRebalance requires. A data disk in removal (any removalState) is left out of every share's branches: the plan neither moves a file off it nor onto it. Read-only: nothing is copied, synced or deleted.

Responses​

The rebalance plan.