gpt4 book ai didi

Cassandra nodetool 修复最佳实践

转载 作者:行者123 更新时间:2023-12-04 12:18:22 40 4
gpt4 key购买 nike

此问题适用于 Cassandra 2.2

不好意思说我还是不明白我什么时候应该运行nodetool repair ,或者更准确地说是在哪些节点上。

到目前为止,我知道为了确保正确处理删除,我应该运行 维修 频率小于 GC_GRACE_SECONDS .所以这很酷。

问:如果我有一个由 9 个节点组成的集群,复制因子为 3,我应该运行什么类型的修复?更重要的是我是否在 上运行修复程序每节点,还是只有一个节点?

问:如果我有多个数据中心,这是否会改变我进行维修的方式。我是否必须在每个 DC 中运行它们,还是可以仅从一个 DC 中的一个节点进行协调?

我希望这是一个微不足道的问题,有人可以告诉它是怎么回事。

最佳答案

The nodetool repair command can be run on either a specified node or on all nodes if a node is not specified. The node that initiates the repair becomes the coordinator node for the operation.



如果未指定节点,它将在负责该分区范围的所有节点上运行。

run nodetool repair -pr on every node in the cluster to repair all data. Otherwise, some ranges of data will not be repaired


nodetool repair -pr选项适用于跨多个数据中心的维修。

Note: For Cassandra 2.2 and later, a recommended option for repairs across datacenters: use the -dcpar or --dc-parallel to repair datacenters in parallel.



Nodetool Repair

关于Cassandra nodetool 修复最佳实践,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37921042/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com