如何增加 tombstone_failure_threshold 值

how to increase tombstone_failure_threshold value

我想增加 cassandra.yaml 文件中的 tombstone_failure_threshold 值,默认值是 100K

我不确定要设置的值。

我查看了一些文档,我发现默认值 gc_grace_seconds864000(10 天)。如果您的 TTL 数据设置为 6 days 那么您可能希望将 gc_grace_seconds 更改为 604800 (7 days) 以更快地删除墓碑。但是我没有为我的数据设置 TTL。如果我减少 gc_grace_seconds 值,是否会影响 tombstone_failure_threshold 或更好地更改 cassandra.yaml 文件中的 tombstone_failure_threshold 值?

`CREATE TABLE test.topics (
 topic_name text PRIMARY KEY,
 latest_time_stamp double
 ) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
  • tombstone_warn_threshold(默认值:1000):如果查询扫描的墓碑数量超过此数量,Cassandra 将记录警告(这可能会传播到您的监控系统并向您发送警报)。
  • tombstone_failure_threshold(默认值:100000):如果查询扫描的墓碑数量超过这个数量,Cassandra 将中止查询。这是一种防止一个或多个节点 运行 内存不足和崩溃的机制。

只有当您对集群中的内存使用模式有信心时,才应向上更改这些值。