卡桑德拉读了很高的爱荷华州

时间:2017-06-09 03:16:18

标签: cassandra iowait

data read per second

我有一个三节点cassandra集群。当我从集群中进行多线程查询时,io负载非常高。集群每个节点保存大约80GB数据。我使用时间窗紧凑策略,时间窗是10小时。一个sstable大约1GB。可以帮我一些身体。感谢你。one sstable infomation
数据速度为每秒10000个。集群拥有大约100亿条记录。 下面是架构信息

CREATE TABLE point_warehouse.point_period (
    point_name text,
    year text,
    time timestamp,
    period int,
    time_end timestamp,
    value text,
    PRIMARY KEY ((point_name, year), time)
) WITH CLUSTERING ORDER BY (time DESC)
    AND bloom_filter_fp_chance = 0.01
    AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
    AND comment = ''
    AND compaction = {'class': 'org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy', 'compaction_window_size': '10', 'compaction_window_unit': 'HOURS', '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 = 2592000
    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';

并且查询是SELECT * from POINT_PERIOD where POINT_NAME=? AND YEAR='2017' AND TIME >'2017-05-23 12:53:24按时间排序asc LIMIT 1允许过滤'

同时执行此查询时,io负载变得非常高,如200MB / s。谢谢。

0 个答案:

没有答案