当我使用配置了 nodetool compact 的 Leveled compaction 对列族执行 Major compaction 时会发生什么?
compact [keyspace][cf_name]
For column families that use the SizeTieredCompactionStrategy, initiates an immediate major compaction of all column families in keyspace. For each column family in keyspace, this compacts all existing SSTables into a single SSTable. This can cause considerable disk I/O and can temporarily cause up to twice as much disk space to be used. Optionally takes a list of column family names.
这一项与分层压缩有关。水平呢?
最佳答案
自 Cassandra 2.2 以来引入了 LCS 的主要压缩,并带有以下 JIRA 票证: https://issues.apache.org/jira/browse/CASSANDRA-7272
但我从未测试过它,DataStax 的 nodetool compact
手册目前还没有描述 LCS,所以我不确定它是否真的有用。
关于用于水平压实柱系列的 Cassandra 主要压实,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16261336/