Skip to content
Discussion options

You must be logged in to vote

You do it as a raft membership change through the master admin API (docs: master management), add the new node first, then remove the old one, so the group never drops below a majority:

  1. Prepare machine_D: install the master there with a new, unused node id (e.g. 4 if A/B/C are 1/2/3), and in its master.json set peers to the new membership: A, B and D. Don't start it as a fresh cluster on its own.
  2. Add D to the raft group (send it to the current leader, any master redirects):
    curl -v "http://machine_A:17010/raftNode/add?addr=machine_D:17010&id=4"
    Start the master on D and wait until it has caught up (it shows up in the cluster info and the leader stays stable).
  3. Remove C:
    curl -v "http://ma…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hugocoder2015
Comment options

Answer selected by hugocoder2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants