【问题标题】:cassandra nodetool compactionhistory interpertationcassandra nodetool compactionhistory interpertation
【发布时间】:2015-06-03 08:27:27
【问题描述】:

当我运行命令时

nodetool compactionhistory

我得到以下输出:

id                                       keyspace_name      columnfamily_name            compacted_at              bytes_in       bytes_out      rows_merged

---
01fd6ca0-d5b5-11e4-bc1e-8f1a146ee438     system             sstable_activity             1427593412714             3183           795            {4:16}

12e296c0-d30e-11e4-bc1e-8f1a146ee438     system             sstable_activity             1427301812780             4130           1069           {1:2, 4:24} 

最后一列表示什么?

【问题讨论】:

标签: cassandra cassandra-2.0


【解决方案1】:

它是一个直方图,显示压缩中合并的行数。关键是合并的行数,所以{1:2, 4:24} 表示有一行不需要合并两次,四行合并了 24 次。

{4:16} 之类的内容意味着压缩正在合并四个 sstable,并且所有这些都共享了 16 个分区(行)。 {1:2, 4:24} 表示单个 sstable 有几个分区是唯一的。

措辞略有不同https://www.datastax.com/documentation/cassandra/2.1/cassandra/tools/toolsCompactionHistory.html 如果有帮助的话

【讨论】:

    猜你喜欢
    • 2018-06-20
    • 2017-05-19
    • 2016-10-07
    • 1970-01-01
    • 1970-01-01
    • 2016-02-02
    • 2023-04-10
    • 2014-08-24
    • 1970-01-01
    相关资源
    最近更新 更多