Trigger a cluster-wide leadership rebalance Added in 8.10
POST/cluster/v2/rebalance
Strongly Consistent About endpoint data consistency
Transfers leadership of every partition that is not led by its highest-priority replica towards that replica, one partition at a time. Returns as soon as the rebalance has been accepted (poll GET /cluster/v2/rebalance to monitor progress).
Each rebalance can specify overrides for the configured rebalance settings (e.g. maximum replication lag to allow). An absent request body means "use the configured settings".
Requires the cluster-admin security chain. Although this operation lists bearerAuth / basicAuth like the rest of the Orchestration Cluster API, it does not accept an Orchestration Cluster user's credentials — only the separate cluster-admin credentials are valid here.
Request
Responses
- 202
- 400
- 401
- 409
- 500
- 502
- 503
- 504
The rebalance was accepted, and its status is reported as it starts.
The provided data is not valid.
The request lacks valid authentication credentials.
Response Headers
A rebalance or cluster configuration change is already in progress, so there is no settled configuration to plan a rebalance against.
An internal error occurred while processing the request.
The coordinator was reached, but its response was absent or unusable.
No coordinator is currently available or reachable.
The coordinator did not answer before the request timeout.