Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Implemented
-
None
-
None
-
None
Description
Currently the ReplaceNode API lets us migrate replicas from one node to another node. However, users might want to migrate multiple nodes at a time, or target a set of nodes instead of a single node. This new API would behave like the replaceNode API, but give users more flexibility.
The new API would use the path POST "/api/cluster/replicas/migrate" (much like the balance replicas API), and have the following body:
{
"sourceNodes": [], # required
"targetNodes": [],
"waitForFinalState": false,
"async": ""
}
"sourceNodes" would be required, and an error would be returned if an empty list was given. "targetNodes" would be optional, and default to all liveNodes that are not provided in "sourceNodes".
Eventually we could deprecate the ReplaceNode command, or at least have it be a shell on-top-of the MigrateReplicas functionality.
Attachments
Issue Links
- causes
-
SOLR-17331 Improve OrderedNodePlacementPlugin placements
- Closed
- links to