集群状态
1 | nodetool status |
集群各阶段的性能
1 | nodetool tpstats |
集群读写延迟,超过 1s 都要注意
1 | nodetool cfstats tbs.mkt_info | head -7 |
查看集群读写延迟统计信息
识别性能问题,一般使用该命令,关注ReadLatency和WriteLatency数值,超过1s都要重点关注
1 | nodetool proxyhistograms |
查看对应表读写延迟统计信息
当分析具体涉及的数据表结构时,一般使用该命令,关注ReadLatency和WriteLatency数值,超过1s都要重点关注
1 | nodetool tablehistograms {keyspace} {table} |
查看集群KeyCache命中率
重点关注hits,命中率越高,说明缓存越有效
1 | nodetool info |grep 'Key Cache' |
监控磁盘读写流量,间隔2s刷新一次
1 | iostat -dx 2 |