当前位置:网站首页>Record a CODIS memory cleanup
Record a CODIS memory cleanup
2022-06-11 12:12:00 【Why is utopia occupied】
background :codis One of the clusters redis-master The host system is out of memory
Ideas :
The simplest and most effective solution is to increase the physical memory of the host
Another way of thinking , Because the company's business has developed for many years ,redis There should be some useless items in the memory without setting the expiration time key
screening :
adopt codis-dashboard Found one of them db in , There is a lot of memory , There are not many connections , You can start with this library
adopt redis-cli Tool login to redis Start viewing in the library (redis-cli -h host -p port), use RANDOMKEY Random sampling to see some key
Frequently confirmed with the business key Is it in use now , Can pass keys View the key The number of ( This is not reasonable , The best way is through rdb View all this key The memory occupied by )
Know some key, You can write scripts , Clean up the by scheduled tasks key
clear :
redis-cli -h host -p port -a password -n 4 keys "aaaakey*" | xargs redis-cli -h host -p port -a password -n 4 del
-a secret key
-n Specify which db library
边栏推荐
- 中国联通 22春招 群面
- Flink data flow graph, parallelism, operator chain, jobgraph and executiongraph, task and task slot
- C # set or verify the format of text field in PDF
- Zhejiang University and Microsoft Asia Research Institute released a new method of video recognition, which can recognize video frame by frame without data marking, or can be used for sign language tr
- InputStream读取文件OutputStream创建文件
- CVPR 2022 𞓜 text guided entity level image manipulation manitrans
- JMeter 学习心得
- Guangdong municipal safety construction data management software 2022 new forms are coming
- Linux changes the MySQL password after forgetting it
- flink Window Join、Interval Join、Window CoGroup (两流匹配 指定key联结,开窗口进行窗口操作)
猜你喜欢

Hang up the interviewer

C # set or verify the format of text field in PDF

13、ReentrantLock、ReentrantReadWriteLock、StampedLock讲解

Acwing50+acwing51 weeks +acwing3493 Maximum sum (open)

flink 窗口表值函数

C # convert ofd to PDF

flink GROUPING SETS多维度聚合、设置Table state 到期时间

flink Window Join、Interval Join、Window CoGroup (两流匹配 指定key联结,开窗口进行窗口操作)

YARN 切换ResourceManager(Failed to connect to server:8032 retries get failed due to exceeded maximum)

Generate statement is not synthesized
随机推荐
flink 多流转换(侧输出流分流、Union、Connect) 实时对账app 的支付操作和第三方的支付操作的双流 Join
Use cache to reduce network requests
Splunk 手工同步search head
Zabbix安装及配置应用
Use compiler option '--downleveliteration' to allow iteration of iterations
Acwing50+Acwing51周赛+Acwing3493.最大的和(未完结)
Apple mobileone: the mobile terminal only needs 1ms of high-performance backbone
中国联通 22春招 群面
Take you to know about direct insertion sorting (C language)
C # set or verify the format of text field in PDF
记一次 mysql 主从不同步问题排查
flink 滚动窗口、滑动窗口、会话窗口、全局窗口
Using fast and slow pointer method to solve the problem of array (C language)
. The way to prove the effect of throwing exceptions on performance in. Net core
ftp服务器:serv-u 的下载及使用
采用快慢指针法来解决有关数组的问题(C语言)
刷题笔记(十三)--二叉树:前中后序遍历(复习)
How does Sister Feng change to ice?
flink 窗口表值函数
[JUC supplementary] atomic class, unsafe