Cassandra显示不正确的负载 [英] Cassandra shows incorrect load

查看:81
本文介绍了Cassandra显示不正确的负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在输出中看到第二个节点Owns显示66.1 %,并且负载大小为834.12GB,而第三个节点的负载大小(node.2GB)比node2低,但拥有百分比很高。

As you can in the output that second node Owns shows 66.1% and Load size is 834.12GB whereas the third node has the lower load size(801.56GB) compared to node2 but Owns percentage is high.

这是否意味着输出不准确。

Does this mean, the output is not accurate.

推荐答案

可能是某些负载是该节点不再负责的数据。例如,如果您首先有一个节点,并为其加载了100gb。然后,将RF更改为2并添加第二个节点。即使在流传输之后,第一个节点仍具有数据,但它不拥有该数据。您可以使用nodetool cleanup删除此数据。

It could be that some of the load is data that the node is not responsible for anymore. For example if you had one node first and loaded it with 100gb. Then you change RF to 2 and add a second node. The first node still has the data even after streaming but it does not own that data. You can remove this data with nodetool cleanup.

或者可能是某个节点已关闭一段时间,而您尚未进行修复。

Or it could be that a node was down for some time and you haven't run repair yet.

编辑:正如Alex所提到的,也可能是您的分区很大,因此数据也不会被分发。

As Alex mentioned, it's also possible that you have large partitions and then the data won't get distributed as well.

这篇关于Cassandra显示不正确的负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆