在 cassandra 的多数据中心集群中使用 2 个不同的 snitches 的可能性

Possibility of using 2 different snitches in the Multiple Data Centers cluster in cassandra

我们有一个跨越我们自己的网络和 AWS 的多数据中心集群。

我们目前正在我们的网络中使用 GossipingPropertFileSnitch 告密者。

是否可以在我们私有网络的数据中心上使用 GossipingPropertFileSnitch 并在 AWS 中使用 Ec2MultiRegionSnitch?

您也可以继续在 AWS 集群中使用 GossipingPropertyFileSnitch。请记住在 AWS 节点上 "cassandra-rackdc.properties" 中为 dc 和 rack 自动化或设置适当的值(就像您在自己的数据中心节点中所做的那样)。

Ec2MultiRegionSnitch 免费为您获取此信息。它的机架和 DC 感知。但它的坏处是节点的发现要求 public ip/internet 然后未来的通信通过私有 ips 发生。

简而言之,GossipingPropertyFileSnitch 继续工作得很好。