【发布时间】:2014-04-13 22:05:10
【问题描述】:
我创建了一个包含 3 个 cassandra 的集群,并创建了一个流程来为集群提供数据。馈送过程对集群造成了相当大的压力,大约 10000 批/秒,并且连续运行了几天。正如预期的那样有效,cassandra 创建了许多 sstable 文件,并且它几乎也不断地压缩这些文件。但是这些文件堆积如山,我目前在 70GB/节点数据库(总共 200GB)上有 300 个。但即使我停止提要并且集群处于空闲状态,它们似乎也不会继续压缩并且文件数量仍然很大。有没有办法强制 cassandra 压缩大部分文件?
我正在使用分级压缩,这是我的一张表:
CREATE TABLE data (
id bigint,
data blob,
PRIMARY KEY (id)
) WITH
bloom_filter_fp_chance=0.100000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
index_interval=128 AND
read_repair_chance=0.100000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
default_time_to_live=0 AND
speculative_retry='99.0PERCENTILE' AND
memtable_flush_period_in_ms=0 AND
compaction={'class': 'LeveledCompactionStrategy'} AND
compression={'sstable_compression': 'LZ4Compressor'};
【问题讨论】:
标签: cassandra