Repository navigation
How can I change the install machine for master node? #4113
Answered
by
TheMysteriousGhost
hugocoder2015
asked this question in
Q&A
|
if I want to change the master node from [machine_A, machine_B, machine_C] to [machine_A, machine_B, machine_D], how can I do? |
Answered by
TheMysteriousGhost
Oct 16, 2026
Replies: 1 comment 1 reply
|
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:
Do one change at a time and check the cluster is healthy in between. With 3 masters you can only lose one, so never remove before the new one has joined. |
1 reply
Answer selected by
hugocoder2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
id(e.g.4if A/B/C are 1/2/3), and in itsmaster.jsonsetpeersto the new membership: A, B and D. Don't start it as a fresh cluster on its own.curl -v "http://machine_A:17010/raftNode/add?addr=machine_D:17010&id=4"curl -v "http://ma…