Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主从与 raft 的切换 #13

Open
panlei-coder opened this issue Aug 31, 2024 · 0 comments
Open

主从与 raft 的切换 #13

panlei-coder opened this issue Aug 31, 2024 · 0 comments
Assignees

Comments

@panlei-coder
Copy link
Collaborator

panlei-coder commented Aug 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants