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

从节点对主节点执行slave. of ip port后是否需要将slaveof的信息写进config 文件 #1780

Closed
chejinge opened this issue Jul 21, 2023 · 2 comments

Comments

@chejinge
Copy link
Collaborator

chejinge commented Jul 21, 2023

如果不写进config文件,在从挂了之后主从关系就没有了。

如果写入是在建立主从关系时候的脚本中进行config rewrite还是直接在代码中实现比较好?

@yaoyinnan
Copy link
Contributor

yaoyinnan commented Jul 22, 2023

0805 月财:可以考虑加一个配置判断是否自动写入
0805 maxin:切主的时候可能还需要 reload config,切换成本变高
0813 月财:需要再讨论一下

@chejinge
Copy link
Collaborator Author

我理解可以写进去,但是在进行slaveof no one实际操作之前将config信息中的主从关系都删除掉,因为每次切主都执行slaveof no one的

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