对LCS的重大压实 [英] major compaction on LCS

查看:54
本文介绍了对LCS的重大压实的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Cassandra集群中有带有LCS的表。我也观察到群集中的墓碑,因此我决定减少GC宽限秒并执行大型压缩。运行nodetoolcompact键空间表,但压缩作业在一秒钟内完成。似乎无法进行大型压实。

I have table with LCS in Cassandra cluster. I am observing too may tombstones in my cluster so I have decided to reduce GC grace seconds and performing major compaction. Ran nodetoolcompact keyspace table but compaction job ran within a second. it seems major compaction not worked. Can you please help me to understand.

推荐答案

如果您实际上使用的是古董Cassandra 2.0,则可以作为问题的标签。说,那么实际上它不支持LCS上的大压缩,并且 nodetool compact仅触发了无论如何都会发生的小压缩(除非明确禁用)。此问题在Cassandra 2.2中已修复-参见问题 https://issues.apache.org/ jira / browse / CASSANDRA-7272

If you're actually using the antique Cassandra 2.0, as the label on your question said, then indeed it didn't support major compaction on LCS, and "nodetool compact" only triggered a minor compaction which would have happened anyway (unless explicitly disabled). This was fixed in Cassandra 2.2 - see the issue https://issues.apache.org/jira/browse/CASSANDRA-7272.

目前仍在计划进一步改善LCS的主要压实-请参见 https://issues.apache.org/jira/browse/CASSANDRA-11817 -但它应该已经可以正常工作了,不应像您那样瞬间完成报告-除非您确实在运行Cassandra 2.0。

There are still ongoing plans to improve major compaction on LCS further - see https://issues.apache.org/jira/browse/CASSANDRA-11817 - but it should already work reasonably well and shouldn't finish "within a second" as you reported - unless you really are running Cassandra 2.0.

这篇关于对LCS的重大压实的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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