当前位置:网站首页>Redis' performance indicators and monitoring methods
Redis' performance indicators and monitoring methods
2022-07-06 09:14:00 【~Pompeii】
Catalog
Redis The performance index of 、 Monitoring mode
1. Performance index classification
1. Performance indicators :Performance
2. Memory metrics :Memory
3. Basic activity indicators :Basic activity
4. Persistence index :Persistence
5. Error indicators :Error
2.Performance
Low cache hit rate means that the server will be under great pressure ;
key The expiration time of will have a little impact on the cache hit rate
3.Memory
4.Basic activity
5.Persistence
6.Error
7. Monitoring mode
Tools ( Need to install )
1.Cloud Insight Redis
2.Prometheus
3.Redis-stat
4.Redis-faina
5.RedisLive
6.zabbix
command (redis These commands provided for us )
1.benchmark
2.redis cli
1)monitor
2)showlog
8.benchmark
command
redis-benchmark [-h ] [-p ] [-c ] [-n <requests]> [-k ]
Example 1
explain : By default ,50 A connection ,10000 The corresponding performance of the second request
redis-benchmark
Example 2
explain :100 A connection ,5000 The corresponding performance of the second request
redis-benchmark -c 100 -n 5000
9.monitor
The order is as follows , Used to print server debugging information
monitor
10.showlog
command
get : Get slow query log
len : Get the number of slow query log entries
reset : Reset slow query log
showlog [operator]
Related configuration
slowlog-log-slower-than 1000 # Set the offline time for slow query , Company : subtle
slowlog-max-len 100 # Set the log display length corresponding to the slow query command , Company : Number of orders
11. demonstration (benchmark)
No use redis It can be operated in the client
12. demonstration (monitor)
Must enter redis client .
send out hello
13.showlog
Because we didn't execute too many instructions , Or an instruction doesn't take much time , So what we found is empty
边栏推荐
- requests的深入刨析及封装调用
- 多元聚类分析
- Advance Computer Network Review(1)——FatTree
- Problems encountered in connecting the database of the project and their solutions
- Intel Distiller工具包-量化实现2
- Leetcode problem solving 2.1.1
- Cesium draw points, lines, and faces
- LeetCode:34. Find the first and last positions of elements in a sorted array
- Redis之Bitmap
- Digital people anchor 618 sign language with goods, convenient for 27.8 million people with hearing impairment
猜你喜欢
UML图记忆技巧
CUDA实现focal_loss
UML diagram memory skills
Nacos 的安装与服务的注册
ant-design的走马灯(Carousel)组件在TS(typescript)环境中调用prev以及next方法
[oc]- < getting started with UI> -- common controls - prompt dialog box and wait for the prompt (circle)
MongoDB 的安装和基本操作
Redis之Bitmap
Redis之cluster集群
LeetCode41——First Missing Positive——hashing in place & swap
随机推荐
Advanced Computer Network Review(5)——COPE
UML圖記憶技巧
Redis之Bitmap
Notes 01
In depth analysis and encapsulation call of requests
opencv+dlib实现给蒙娜丽莎“配”眼镜
LeetCode:162. Looking for peak
Kratos战神微服务框架(三)
【每日一题】搬运工 (DFS / DP)
自定义卷积注意力算子的CUDA实现
Nacos 的安装与服务的注册
[oc]- < getting started with UI> -- common controls - prompt dialog box and wait for the prompt (circle)
Kratos战神微服务框架(二)
CUDA implementation of self defined convolution attention operator
[text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth
LeetCode:39. Combined sum
在QWidget上实现窗口阻塞
Redis cluster
SimCLR:NLP中的对比学习
Advance Computer Network Review(1)——FatTree