如何启用只读的 cassandra 复制?

How to enable read only cassandra replication?

是否可以将 Cassandra 数据复制到另一个服务器实例中以运行对其进行只读数据操作?随着我们对 SAN 的探索,它变得更加昂贵

注意: 1.我不允许将数据复制到文件中,因此插入到另一个实例中,tt应该像数据的镜像。 2.复制应该是只读的 3.两个实例应该同步 4. 如果不支持apache,期待市场上opensource/paid工具的建议

我建议您在集群中设置第二个 Cassandra 数据中心,并配置所需的键空间以获得多数据中心支持。使用此数据中心处理所有只读操作并创建只读用户 (documentation here) that applications in the RO datacenter can use to connect. In this case the only write operations permitted would be the ones from DC 1 to the RO DC to keep them in sync. This is the same basic idea as workload segregation in Datastax (documentation here)