Redis 常用监控信息命令总结
查看啟動到當前處理命令總數:
# redis-cli info stats | grep total_commands
total_commands_processed:23693286991
?
查看每秒操作數:
# redis-cli info stats | grep instantaneous_ops_per_sec?
instantaneous_ops_per_sec:10861
?
查看已過期的key數量:
# redis-cli info stats |grep expired_keys ??
expired_keys:0
?
查看命令處理總數:
# redis-cli info stats ?|grep total_commands_processed
total_commands_processed:23695648616
?
查看進入進出總流量:
# redis-cli info stats ?|grep net
total_net_input_bytes:62429833490720
total_net_output_bytes:83883788471819
?
查看slowlog慢查詢配置:
# redis-cli config get slowlog-log-slower-than
1) "slowlog-log-slower-than"
2) "10000"
?
?
查看內存碎片率:
# redis-cli info memory ?| grep mem_fragmentation_ratio
mem_fragmentation_ratio:1.08
?
查看復制延遲命令:
# redis-cli --latency?
min: 0, max: 1, avg: 0.16 (174 samples)
min: 0, max: 1, avg: 0.16 (196 samples)
min: 0, max: 1, avg: 0.16 (253 samples)
min: 0, max: 1, avg: 0.16 (273 samples)
min: 0, max: 1, avg: 0.16 (292 samples)
min: 0, max: 1, avg: 0.16 (313 samples)
min: 0, max: 1, avg: 0.16 (335 samples)
min: 0, max: 1, avg: 0.15 (429 samples)
min: 0, max: 1, avg: 0.15 (467 samples)
轉載于:https://www.cnblogs.com/dekevin/p/10276962.html
總結
以上是生活随笔為你收集整理的Redis 常用监控信息命令总结的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 第十章 优先级队列 (b3)完全二叉堆:
- 下一篇: CentOS 7安装GitLab、汉化、
