Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我维护一个带有 2 个数据中心的 cassandra 集群。现在我要在现有集群中添加新的数据中心。重建数据后,如何验证新数据中心数据的一致性?
从每个 DC 读取 LOCAL_QUORUM 并进行比较是最直接的。
修复从压缩任务中的 sstables 构建分区哈希,并比较它们的范围,这比单独读取数据更有效。您可以从代码中提取该部分来构建一个工具来做同样的事情......或者如果您可以运行(完全而不是增量)修复。它记录了它发现的差异。