了解集群状态更新 [英] Understanding cluster state update

查看:55
本文介绍了了解集群状态更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读



问题有时是存在的,只有节点4 知道那融合发生了。节点1、2和3仍然认为没有。我对节点4应该如何处理收敛很感兴趣?



是否应该发起新的八卦回合?还是其他节点如何知道呢?

解决方案

节点1-3仍然会闲聊(嗯,3个节点可能已经知道了)收敛,因为它知道4具有价值。)随着他们继续闲聊,他们将就谁看到了价值交换了笔记。



节点4(和3)。随后的所有知道收敛的节点将继续闲聊,但不会在另一个问题中提到随机加权。在链接文档的协议部分中,它说:


尽管群集处于聚合状态,闲聊只会发送一条很小的闲聊状态消息包含到所选节点的八卦版本。一旦集群发生变化(意味着不收敛),它就会再次回到有偏差的八卦中。



I'm reading gossip akka cluster documentation and still have one little misunderstanding about gossip.

As said in this answer, two nodes are gossiping about the value and then who seen this value. But this comes with some issue about convergence. Here's how I see this:

S - is a seen set.

The issue is at some time, only node 4 knows that convergence happened. node 1, 2 and 3 still think it does not. I'm interesting about how should node 4 deal with convergence?

Should it initiate a new gossip round that convergence happened? Or how can other nodes know about it?

解决方案

Nodes 1-3 will still be gossiping (well, 3 probably already knows about convergence because it knows 4 has the value.) As they continue gossiping they will be exchanging notes on who has seen the value.

Node 4 (and 3 really), and all subsequent nodes knowing about convergence continue gossiping but without the random weighting mentioned in your other question. In the protocol section of your linked doc it says:

While the cluster is in a converged state the gossiper only sends a small gossip status message containing the gossip version to the chosen node. As soon as there is a change to the cluster (meaning non-convergence) then it goes back to biased gossip again.

这篇关于了解集群状态更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆