Open panlei-coder opened 7 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: Master-slave and raft switching
raft切主从的话需要先transfer leadership,保证切的主的数据是最新的。
Bot detected the issue body's language is not English, translate it automatically.
If raft switches from master to slave, leadership needs to be transferred first to ensure that the data of the master being switched is the latest.
Bot detected the issue body's language is not English, translate it automatically.
If raft switches from master to slave, leadership needs to be transferred first to ensure that the data of the master being switched is the latest.
switch from raft to master-slave
Bot detected the issue body's language is not English, translate it automatically.
342 This PR solves this problem to a certain extent
1、命令: 主从 master:master init slave:slaveof ip port (learner) (如果检测到自己是followr,则先移除集群,再以learner的方式加入) slaveof no one 解除主从关系
braft leader:raft.cluster init follower:raft.cluster join ip:port (如果检测到自己是learner,则先解除主从关系,再重新加入集群) raft.cluster remove idx