当前位置:网站首页>Redis之性能指标、监控方式
Redis之性能指标、监控方式
2022-07-06 08:59:00 【~庞贝】
目录
Redis之性能指标、监控方式
1.性能指标分类
1.性能指标:Performance
2.内存指标:Memory
3.基本活动指标:Basic activity
4.持久性指标:Persistence
5.错误指标:Error
2.Performance
缓存命中率低意味着服务器压力就会非常大;
key的过期时间会对缓存命中率产生一点影响
3.Memory
4.Basic activity
5.Persistence
6.Error
7.监控方式
工具(需要安装)
1.Cloud Insight Redis
2.Prometheus
3.Redis-stat
4.Redis-faina
5.RedisLive
6.zabbix
命令(redis为我们提供的这些命令)
1.benchmark
2.redis cli
1)monitor
2)showlog
8.benchmark
命令
redis-benchmark [-h ] [-p ] [-c ] [-n <requests]> [-k ]
范例1
说明:默认下,50个连接,10000次请求对应的性能
redis-benchmark
范例2
说明:100个连接,5000次请求对应的性能
redis-benchmark -c 100 -n 5000
9.monitor
命令如下,用于打印服务器调试信息
monitor
10.showlog
命令
get :获取慢查询日志
len :获取慢查询日志条目数
reset :重置慢查询日志
showlog [operator]
相关配置
slowlog-log-slower-than 1000 #设置慢查询的时间下线,单位:微妙
slowlog-max-len 100 #设置慢查询命令对应的日志显示长度,单位:命令数
11.演示(benchmark)
不用在redis客户端里就即可操作
12.演示(monitor)
必须进入redis客户端。
发送hello
13.showlog
由于我们并没有执行太多指令,或者某一条指令并没有用太多时间,所以查到的是空的
边栏推荐
猜你喜欢
Digital people anchor 618 sign language with goods, convenient for 27.8 million people with hearing impairment
LeetCode:236. 二叉树的最近公共祖先
KDD 2022论文合集(持续更新中)
LeetCode:498. Diagonal traversal
[OC-Foundation框架]---【集合数组】
[MySQL] multi table query
【shell脚本】——归档文件脚本
注意力机制的一种卷积替代方式
[oc]- < getting started with UI> -- common controls uibutton
Intel distiller Toolkit - Quantitative implementation 2
随机推荐
Improved deep embedded clustering with local structure preservation (Idec)
七层网络体系结构
BMINF的后训练量化实现
LeetCode:39. Combined sum
Detailed explanation of dynamic planning
UML diagram memory skills
在QWidget上实现窗口阻塞
Advanced Computer Network Review(5)——COPE
LeetCode:836. Rectangle overlap
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
UML图记忆技巧
Philosophical enlightenment from single point to distributed
LeetCode:162. Looking for peak
LeetCode:214. 最短回文串
Super efficient! The secret of swagger Yapi
xargs命令的基本用法
使用latex导出IEEE文献格式
An article takes you to understand the working principle of selenium in detail
LeetCode:221. Largest Square
To effectively improve the quality of software products, find a third-party software evaluation organization