当前位置:网站首页>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 .
边栏推荐
- [untitled] user defined function
- At the age of 32, I fell into a middle-aged crisis and finally quit naked...
- How to automatically renew a token after it expires?
- Navigate back to fragmentpageradapter - & gt; Fragment is empty - navigating back to fragmentpageradapter - & gt; fragments are empty
- Golang's handwritten Web Framework
- Projet Web de déploiement du serveur Cloud
- 【学习强化学习】总目录
- MySQL事物
- 旋转标注工具roLabelImg
- English语法_形容词/副词3级-最高级
猜你喜欢

Feisheng: Based on the Chinese word breaker ik-2 ways to build custom hot word separators Showcase & pit arrangement Showtime

Finally someone can make the server so straightforward

MySQL advanced (Advanced SQL statement)

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

Huxiaochun came to fengshu electronics to sign a strategic cooperation agreement with Zoomlion

1380. lucky numbers in matrices

What do you think of the deleted chat records? How to restore the deleted chat records on wechat?

Golang's handwritten Web Framework
![09- [istio] istio service entry](/img/48/86f8ec916201eefc6ca09c45a60a6a.jpg)
09- [istio] istio service entry

Create priority queue
随机推荐
Huxiaochun came to fengshu electronics to sign a strategic cooperation agreement with Zoomlion
旋转标注工具roLabelImg
1380. lucky numbers in matrices
Did you know that WPS can turn on eye protection mode?
动态规划--怪盗基德的滑翔翼
Variable parameters of go
[deep learning] data segmentation
数据读写:Unity中基于C#脚本实现数据读写功能
Basic operations of C language
What indicators should safety service engineers pay attention to in emergency response?
Prototype and prototype chain in JS
What kind of answer has Inspur given in the big AI model landing test?
English grammar_ Adjective / adverb Level 3 - superlative
ES6箭头函数
86. separate linked list
Sword finger offer 18 Delete the node of the linked list
PC viewing WiFi password
OSPF - authentication and load balancing summary (including configuration commands)
MySQL數據庫用戶管理
雲服務器部署 Web 項目