Sat*_*Sat 2 cassandra cassandra-3.0
我想增加文件tombstone_failure_threshold中的值cassandra.yaml,默认情况下该值为100K
我不确定要设置的值。
我浏览了一些文档,我看到减少默认值gc_grace_seconds是864000(10 天)。如果您的TTL数据设置为6 days,那么您可能需要更改gc_grace_seconds为604800 (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)
仅当您对集群中的内存使用模式确实有信心时,才应向上更改这些值。
| 归档时间: |
|
| 查看次数: |
2225 次 |
| 最近记录: |