首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何提高tombstone_failure_threshold值

如何提高tombstone_failure_threshold值
EN

Stack Overflow用户
提问于 2018-01-31 09:31:51
回答 1查看 1.9K关注 0票数 2

我想在tombstone_failure_threshold文件中增加cassandra.yaml值,默认情况下这个值是100K

我不确定要确定的价值。

我已经看过一些文档,我看到了减少默认的gc_grace_seconds864000 (10天)。如果您的TTL数据被设置为6 days,那么您可能希望将gc_grace_seconds更改为604800 (7 days),以便更快地删除墓碑。但我不会为我的数据设置TTL。如果我减少了gc_grace_seconds值,那么更改cassandra.yaml文件中的tombstone_failure_threshold值会影响tombstone_failure_threshold还是更好呢?

代码语言:javascript
复制
`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';
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-01-31 13:57:22

  • tombstone_warn_threshold (默认值: 1000):如果查询扫描的墓碑数量超过此数,Cassandra将记录一个警告(该警告可能会传播到您的监视系统并向您发送警报)。
  • tombstone_failure_threshold (默认值: 100000):如果查询扫描的墓碑数量超过此数,卡桑德拉将中止查询。这是一种防止一个或多个节点耗尽内存和崩溃的机制。

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

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48538746

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档