【发布时间】:2022-01-09 14:31:42
【问题描述】:
大约 2 周前,我删除了大约 700GB 的 cassandra 数据。但是直到现在磁盘空间仍然没有空闲。我知道 gc_grace_second 和 default_time_to_live 过期时会删除数据。并且 nodetool compactionstats 仍然有待处理的任务。
CREATE TABLE ywulzsrdphjlbgoksmnqoliktcmrlcybidcw (
key text,
column1 text,
value text,
PRIMARY KEY (key, column1) )
WITH COMPACT STORAGE
AND bloom_filter_fp_chance=0.100000
AND caching='{"keys":"ALL", "rows_per_partition":"NONE"}'
AND comment=''
AND dclocal_read_repair_chance=0.000000
AND gc_grace_seconds=1
AND read_repair_chance=0.000000
AND default_time_to_live=0
AND speculative_retry='NONE'
AND memtable_flush_period_in_ms=0
AND compaction={'class':'LeveledCompactionStrategy'}
AND compression={'sstable_compression': 'LZ4Compressor'};
【问题讨论】:
-
这是“幽灵数据”的秘诀:
gc_grace_seconds=1。我不久前写了一篇文章,详细说明了为什么将gc_grace_seconds设置得太低是个坏主意:medium.com/building-the-open-data-stack/…
标签: linux server cassandra delete-row diskspace