【问题标题】:Cassandra 3.10 DateTieredCompactionStrategy options for our environment我们环境的 Cassandra 3.10 DateTieredCompactionStrategy 选项
【发布时间】:2017-04-04 15:38:11
【问题描述】:

我们的 cassandra 3.10 表使用以下选项进行操作。我的问题是 DateTieredCompactionStrategy 在我们的环境中的最佳选项值。

  • 每秒写入大约 1000 个事件。
  • 数据存储 10 年。
  • 最近的数据查询和按时间窗口的聚合查询很频繁。
  • 更新不频繁。

当前表格选项:

AND bloom_filter_fp_chance = 0.01
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
AND comment = ''
AND compaction = {'max_sstable_age_days': '365', 'base_time_seconds': '3600', 'max_threshold': '32', 'timestamp_resolution': 'MILLISECONDS', 'enabled': 'true', 'tombstone_compaction_interval': '1', 'min_threshold': '4', 'tombstone_threshold': '.1', 'class': 'org.apache.cassandra.db.compaction.DateTieredCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 315360000
AND gc_grace_seconds = 60
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0
AND speculative_retry = 'NONE';

请建议选项。

【问题讨论】:

    标签: cassandra


    【解决方案1】:

    DTSC有很多问题,这就是TWCS被开发出来的原因。

    请考虑改用这种压缩策略。

    这是一篇关于 TWCS 及其好处的文章,并解释了它的参数: http://thelastpickle.com/blog/2016/12/08/TWCS-part1.html

    关于您在 DTCS 中的参数:

    'base_time_seconds': '3600'
    

    这可能会导致较大的 sstables,如果您继续使用 DTCS,请考虑根据您的记录大小和吞吐量降低它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-29
      • 2017-03-29
      • 1970-01-01
      • 2022-12-20
      • 2021-08-24
      • 2019-08-01
      • 1970-01-01
      相关资源
      最近更新 更多