简体   繁体   English

了解集群状态更新

[英]Understanding cluster state update

I'm reading gossip akka cluster documentation and still have one little misunderstanding about gossip.我正在阅读八卦 akka 集群文档,但仍然对八卦有一点误解。

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. S - 是一个可见的集合。

集群拓扑

The issue is at some time, only node 4 knows that convergence happened.问题是在某个时候,只有节点 4知道发生了收敛。 node 1, 2 and 3 still think it does not.节点 1、2 和 3 仍然认为它没有。 I'm interesting about how should node 4 deal with convergence?我对节点 4 应该如何处理收敛感兴趣?

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.节点 1-3 仍然会闲聊(嗯,3 可能已经知道收敛,因为它知道 4 有价值。)随着他们继续闲聊,他们将交换关于谁看到了价值的笔记。

Node 4 (and 3 really), and all subsequent nodes knowing about convergence continue gossiping but without the random weighting mentioned in your other question.节点 4(实际上是 3)以及所有后续节点都知道收敛继续八卦,但没有您的其他问题中提到的随机权重。 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.一旦集群发生变化(意味着不收敛),它就会再次回到有偏见的八卦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM