简体   繁体   English

在apache cassandra中使用八卦协议有什么用?

[英]what is the use of gossip protocol in apache cassandra?

I have problems understanding the utility of gossip protocol in Apache Cassandra (Why Cassandra use gossip protocol as a P2P communication protocol?)? 我在Apache Cassandra中理解八卦协议的效用时遇到了问题(为什么Cassandra使用gossip协议作为P2P通信协议?)?

Given that Apache cassandra use gossip protocol, for wich reasons? 鉴于Apache cassandra使用八卦协议,原因何在? is it just to exchange nodes states in cluster to find if a node is UP or DOWN? 只是在群集中交换节点状态以查找节点是UP还是DOWN? or it's used too to exchange node information like memory usage & disk capacity? 或者它也用于交换内存使用和磁盘容量等节点信息?

Gossip is used to broadcast members' state around the cluster. 八卦用于在群集周围广播成员的状态。 Part of the information exchanged: 部分信息交换:

  • status 状态
  • health 健康
  • tokens 令牌
  • schema version 架构版本
  • addresses 地址
  • data size 数据大小

Note: there might be other details that I have missed. 注意:可能还有其他细节我错过了。 Another resource that you can consult is https://wiki.apache.org/cassandra/ArchitectureGossip 您可以参考的另一个资源是https://wiki.apache.org/cassandra/ArchitectureGossip

The Gossip protocol is the internal communication technique for nodes in a cluster to talk to each other. Gossip协议是集群中节点相互通信的内部通信技术。 Gossip is an efficient, lightweight, reliable inter-nodal broadcast protocol for diffusing data. Gossip是一种高效,轻量,可靠的节点间广播协议,用于传播数据。 It's decentralized, "epidemic", fault tolerant and a peer-to-peer communication protocol. 它是分散的,“流行病”,容错和点对点通信协议。 Cassandra uses gossiping for peer discovery and metadata propagation. Cassandra使用闲话进行对等发现和元数据传播。

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

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