Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 9.3
    • 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

          Activity

            People

              houston Houston Putman
              houston Houston Putman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m