如何增加 tombstone_failure_threshold 值

Sat*_*Sat 2 cassandra cassandra-3.0

我想增加文件tombstone_failure_threshold中的值cassandra.yaml,默认情况下该值为100K

我不确定要设置的值。

我浏览了一些文档,我看到减少默认值gc_grace_seconds864000(10 天)。如果您的TTL数据设置为6 days,那么您可能需要更改gc_grace_seconds604800 (7 days)以更快地删除逻辑删除。但我没有设置TTL我的数据。如果我减少gc_grace_seconds值,是否会影响tombstone_failure_threshold或更好地更改文件tombstone_failure_threshold中的值cassandra.yaml

`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';
Run Code Online (Sandbox Code Playgroud)

Hor*_*ria 5

  • tombstone_warn_threshold(默认值:1000):如果查询扫描的逻辑删除数量超过此数量,Cassandra 将记录一条警告(这可能会传播到您的监控系统并向您发送警报)。
  • tombstone_failure_threshold(默认值:100000):如果查询扫描的逻辑删除数量超过此数量,Cassandra 将中止查询。这是一种防止一个或多个节点内存不足和崩溃的机制。

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