如何解决在cassandra中启用读取后,磁盘io已增加
启用读取后增加了磁盘io。它的10节点集群具有RF3。响应时间也变长了。我们正在使用下面的查询来读取数据。有人可以帮助您解决/解决此问题。
不。节点数:10 储存空间:SSD 操作系统:Centos 7 版本:3.10 读取:1000 /分钟
查询:
SELECT * FROM Test.table_A WHERE user_id = ? AND group_type = ? ORDER BY group_type ASC,action_type ASC,created_at DESC LIMIT 500;
SELECT * FROM Test.table_A WHERE user_id = 98765432 AND group_type = abc LIMIT 100;
SELECT * FROM Test.table_A WHERE user_id = 10999222 AND group_type = xyz LIMIT 500;
该表的架构
CREATE TABLE Test.table_A (
user_id text,group_type text,action_type text,created_at timestamp,asset_type text,content_type text,engage_level text,group_id text,item_id text,item_igs text,ui_type text,PRIMARY KEY (user_id,group_type,action_type,created_at)
) WITH CLUSTERING ORDER BY (group_type ASC,created_at DESC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL','rows_per_partition': 'NONE'}
AND comment = 'User page view activity is maintained in this table'
AND compaction = {'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy','compaction_window_size': '3','compaction_window_unit': 'DAYS','max_threshold': '32','min_threshold': '4','unchecked_tombstone_compaction': 'true'}
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 = 1296000
AND gc_grace_seconds = 86400
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';
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。