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

变更集群部分节点地址导致注册中心集群不正常问题 #170

Closed
heqingpan opened this issue Nov 16, 2024 · 1 comment
Closed

Comments

@heqingpan
Copy link
Collaborator

关于之前的变更集群部分节点地址导致注册中心集群不正常问题,分析后已确认原因:

  1. 注册中心每个节点都会维护一份到其它节点的「请求发送器」以支持本节点更新内容后给其它所有节点同步信息;
  2. 然后对同一个id的节点「请求发送器」的目标网络地址只取第一次初始化的值,之后节点信息变更,不会更新网络地址;
  3. 这就导致其它节点给变更过网络地址发的心跳使用的地址是老地址,变更过地址的节点超时没有收到其它节点的心跳报文,就把其它节点状态标记为不可用(表现为在控制台集群页面看不到不可用状态的节点);然后变更过地址的节点发送给其它节点的地址没有变更过,心跳都能发送成功,所以这个节点在其它节点中表现的状态正常可用;
@heqingpan
Copy link
Collaborator Author

v0.6.6版本已完成

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

No branches or pull requests

1 participant