当前位置:网站首页>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
边栏推荐
- flink 窗口表值函数
- Splunk 手工同步search head
- 让你搞懂冒泡排序(C语言)
- Use of RadioButton in QT
- 微信授权获取手机号码
- Error occurred when MySQL imported the database data in pagoda as 0000-00-00 and enum as null
- Gestion de projets logiciels 7.1. Concept de base du calendrier du projet
- flink 多流转换(侧输出流分流、Union、Connect) 实时对账app 的支付操作和第三方的支付操作的双流 Join
- ftp服务器:serv-u 的下载及使用
- 解决swagger文档接口404的问题
猜你喜欢

Jest unit test description config json

Uncaught typeerror: cannot set property 'next' of undefined

C # convert ofd to PDF

C# 读取txt文件生成Word文档

flink 部署模式和运行时架构(会话模式、单作业模式、应用模式,JobManager、TaskManager,YARN 模式部署以及运行时架构)

安全工程师发现PS主机重大漏洞 用光盘能在系统中执行任意代码

12、AbstractQueuedSynchronizer之AQS

反射真的很耗时吗,反射 10 万次,耗时多久。

Notes on brushing questions (13) -- binary tree: traversal of the first, middle and last order (review)

Flink data flow graph, parallelism, operator chain, jobgraph and executiongraph, task and task slot
随机推荐
让你理解选择排序(C语言)
Let you understand bubble sorting (C language)
JVM优化
Where is it safer to open an account for soda ash futures? How is the deposit calculated?
The secret behind the Splunk bucket
反射真的很耗时吗,反射 10 万次,耗时多久。
Acwing50+Acwing51周赛+Acwing3493.最大的和(未完结)
Wechat authorization to obtain mobile phone number
13、ReentrantLock、ReentrantReadWriteLock、StampedLock讲解
解决Splunk kvstore “starting“ 问题
(解决)Splunk 之 kv-store down 问题
调整数组顺序使奇数位于偶数前面(C语言)
When I saw the sudden death of a 28 year old employee, I wanted to moisten
Use of Chinese input method input event composition
ftp服务器:serv-u 的下载及使用
Wechat web developers, how to learn web development
C # apply many different fonts in PDF documents
Uncaught typeerror: cannot set property 'next' of undefined
Memory mapping image of the grayloc module in the surfacefinder process
中国网络安全年会周鸿祎发言:360安全大脑构筑数据安全体系