当前位置:网站首页>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
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-9EeHPBJN-1656729974671)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702102918685.png)]](/img/7f/6339c7d971c0e3e94834e5aa9c919f.png)
3.Memory
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-4qGXqZWQ-1656729974672)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702103146808.png)]](/img/41/3068742d0bed7e9a472e2a5541861e.png)
4.Basic activity
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Uc49El2Z-1656729974673)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702103210289.png)]](/img/4f/9c40b32286c534704e6718a37350c0.png)
5.Persistence
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-VBwI2Tmj-1656729974673)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702103408017.png)]](/img/18/de2a25a58ff92ea4b29c9d0cb780e9.png)
6.Error
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-OegbB1n3-1656729974673)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702103518887.png)]](/img/0b/2bc8c277f24d625fc04bce805d4836.png)
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
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-3kfxzhbZ-1656729974674)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702103739871.png)]](/img/40/067de4755d01938d4c6cd64f4a55b7.png)
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
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-ABO9ElXR-1656729974675)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702104213377.png)]](/img/4d/b496d64caa92721f8caa70f69fd5ee.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-5Iy57IHG-1656729974675)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702104239756.png)]](/img/8e/56e46070072e92649dfaa6b904a64b.png)
12. demonstration (monitor)
Must enter redis client .
send out hello
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-9Jwem4Pj-1656729974676)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220702104435078.png)]](/img/6a/cc7b4bfdfea4aec0cea7f2d3545c35.png)
13.showlog
Because we didn't execute too many instructions , Or an instruction doesn't take much time , So what we found is empty

边栏推荐
- Export IEEE document format using latex
- MongoDB 的安装和基本操作
- After reading the programmer's story, I can't help covering my chest...
- Redis cluster
- [OC-Foundation框架]-<字符串And日期与时间>
- Redis之持久化实操(Linux版)
- CUDA realizes focal_ loss
- Advanced Computer Network Review(4)——Congestion Control of MPTCP
- QDialog
- Pytest之收集用例规则与运行指定用例
猜你喜欢

LeetCode:221. Largest Square

Mise en œuvre de la quantification post - formation du bminf

UML图记忆技巧

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

KDD 2022论文合集(持续更新中)

BMINF的后训练量化实现

I-BERT

Advanced Computer Network Review(3)——BBR

Intel distiller Toolkit - Quantitative implementation 2
![[oc]- < getting started with UI> -- learning common controls](/img/2c/d317166e90e1efb142b11d4ed9acb7.png)
[oc]- < getting started with UI> -- learning common controls
随机推荐
How to intercept the string correctly (for example, intercepting the stock in operation by applying the error information)
Selenium+pytest automated test framework practice (Part 2)
CUDA implementation of self defined convolution attention operator
ant-design的走马灯(Carousel)组件在TS(typescript)环境中调用prev以及next方法
Redis之五大基础数据结构深入、应用场景
Nacos installation and service registration
Intel distiller Toolkit - Quantitative implementation 1
BN folding and its quantification
Seven layer network architecture
[MySQL] limit implements paging
[OC-Foundation框架]-<字符串And日期与时间>
[oc foundation framework] - < copy object copy >
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
LeetCode:387. The first unique character in the string
Mongodb installation and basic operation
Intel Distiller工具包-量化实现1
Redis之Bitmap
Go redis initialization connection
Redis之主从复制
LeetCode:394. String decoding