gpt4 book ai didi

cassandra - 如何获取C*集群的compaction策略?

转载 作者:行者123 更新时间:2023-12-01 10:36:15 25 4
gpt4 key购买 nike

documentation它说 SizeTieredCompactionStrategy (STCS) 是默认的压缩策略。

如何获取集群的实际压缩策略?

最佳答案

压缩策略定义在每个表

cqlsh中:

cqlsh:music> DESCRIBE TABLE artists;

CREATE TABLE music.artists (
name text PRIMARY KEY,
born text,
country text,
died text,
gender text,
styles list<text>,
type text
) 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'}
...
...;

关于cassandra - 如何获取C*集群的compaction策略?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34860713/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com