我有一对卡桑德拉表上的墓碑压实不断运行,我相信这是卡桑德拉进程高CPU使用率背后的原因。Cassandra不断的墓碑压实的表
设置我有包括:
compaction = {'tombstone_threshold': '0.01',
'tombstone_compaction_interval': '1', 'class':
'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
default_time_to_live = 1728000
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
在表中的一个我写的每分钟的数据吧。由于设置了TTL,因此整组行也会每分钟过期。
是不断夯实由于低tombstone_threshold和tombstone_compaction_interval?
能有人给的详细解释tombstone_threshold和tombstone_compaction_interval。 Cassandra文件没有很好地解释它。
感谢您的解释和TWCS建议。你能否详细说明为什么你说20天的TTL将导致一吨的压实和墓碑压实。 – GenerousJoker