当前位置:网站首页>Application of redis client list in practice
Application of redis client list in practice
2022-06-30 06:02:00 【Flower master】
client list In practical application
The problem background
redis After the data migration on the old database is completed , The machine needs to be returned to O & M , When checking whether the old database still has traffic , There are very few set\get Requested and irregular .
Direction of investigation
This problem is to be solved , Otherwise, it cannot be returned to the operation and maintenance machine , The first reaction is to check the code , Look at the code that connects the instance , No result of investigation .
Problem thinking & solve
One morning I had a whim , If there is get\set request , There must be a client connection , You can reverse find the machine where the service is located through the connection of the client , And then find out the service . I want to go over it again redis manual , Now there's a client list All connected machines can be listed .
id=3968277 addr=10.10.31.109:33913 fd=5 age=1794 idle=5 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=ping replaof_fileid=0 replaof_fileoffset=0
id=3514528 addr=10.103.80.101:55962 fd=10 age=1531646 idle=1531646 flags=S db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events= cmd=sync replaof_fileid=1905 replaof_fileoffset=679885188 // From copying
Parameter description : From https://www.zadd.site/post/redis/client-list/
Pass quickly addr Locate the location of the service , After boarding, I found that the old service had not been stopped , Turn off the service and then monitor Command view ,set\get The order disappeared .
summary
Two points can be drawn from this question :
1、 When positive thinking cannot be solved , Think in reverse .
2、 It is important to be familiar with the tools you use .
边栏推荐
- Sword finger offer 18 Delete the node of the linked list
- Leader: who can use redis expired monitoring to close orders and get out of here!
- SHELL
- VLAN access mode
- 网络基础知识
- Talking about the struct of go
- Summary of redis learning notes (I)
- MySQL事物
- After getting these performance test decomposition operations, your test path will be more smooth
- 8 ways to earn passive income
猜你喜欢

Dao -- a beautiful new world?

Sound network, standing in the "soil" of the Internet of things

86. separate linked list

Develop stylelint rules from zero (plug-ins)

Prototype and prototype chain in JS

谁不想要一个自己的博客网站呢 - 搭建博客网站wordpress

Balanced binary tree judgment of Li Kou 110 -- classic problems

Official win 10 image download

English语法_形容词/副词3级-最高级

Switch to software testing and report to the training class for 3 months. It's a high paying job. Is it reliable?
随机推荐
[road of system analyst] collection of wrong topics in Project Management Chapter
超简单 STM32 RTC闹钟 时钟配置
观察者模式、状态模式在实际工作中的使用
Finally someone can make the server so straightforward
拼多多店铺搜索相关问题,为什么新品上架搜索不到
Prototype and prototype chain in JS
Did you know that WPS can turn on eye protection mode?
English语法_形容词/副词3级-最高级
二十四、输入输出设备模型(串口/键盘/磁盘/打印机/总线/中断控制器/DMA和GPU)
InputStream to inputstreamsource
ECS deployment web project
[database] transaction
Dynamic programming -- gliding wing of the strange thief Kidd
重构之美:当多线程批处理任务挑起大梁 - 万能脚手架
Cisco vxlan configuration
MySQL storage system
Use of OpenCL thread algebra library viennacl
Shenzhou ares tx6 boot logo modification tutorial
STM32F103 series controlled OLED IIC 4-pin
MySQL summary