-
Notifications
You must be signed in to change notification settings - Fork 448
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
cluster模式,如果某个进程挂了,没有通知到master unregister,再重新启动这个进程,这个进程就会一直等待register返回,而master的cluster已经有该进程 #67
Comments
你有兴趣修改一下吗? |
Master 节点可以加一个接口来获取所有的 Gate 服务器。 |
我觉得clientAddr还是放到MemberInfo里比较好,要么还要维护一套服务的register和unregister。 |
也可以 |
这样就要改nano库~~ |
欢迎提交 PR,如果有兴趣,我们可以拉一个群讨论,继续完善 Nano |
有群吗,可以拉我进来 |
加我微信 oss_lonng |
ok |
// Register implements the MasterServer gRPC service
@lonng cluster模式,如果某个进程关闭了再也重连不上问题:我修改为每次master存在就移除重新注册,帮忙看下这样修改合理吗? |
可以的,提一个 PR 吧 |
1.master做状态检查,每隔一段时间对进程做状态检查,如果发现状态有问题,自动unregister操作
2.每次注册,如果master包含该server信息,直接返回正确
The text was updated successfully, but these errors were encountered: