【发布时间】:2018-12-12 19:04:30
【问题描述】:
在我们的一台服务器上,压缩过程正在挂起。它停留在80%。最近3天卡住了。今天我们重新启动了集群(一次一台主机)。它再次停留在相同的 80%。 CPU 使用率为 100%,似乎没有 IO 问题。我们在 system.log 中看到以下警告
BatchStatement.java (line 226) Batch of prepared statements for [****, ****] is of size 7557, exceeding specified threshold of 5120 by 2437.
我已尝试使用 nodetool 停止此压缩。但这也不会停止。
有人可以帮忙吗?
【问题讨论】:
-
上面的消息纯粹是关于节点正在处理的批量大小的警告。这是 cassandra.yaml 中的一个可配置参数(例如,batch_size_warn_threshold_in_kb:64)。 “压缩过程挂起”是什么意思?你从哪里得到这些信息的? nodetool compactionstats 显示了什么(您是从那里获得“挂起”信息的吗?)?