当前位置:网站首页>An article to solve the bigkey problem in redis
An article to solve the bigkey problem in redis
2022-07-27 22:45:00 【InfoQ】
redis Medium BigKey Problems and solutions
BigKey What's the problem
BigKey How did the problem arise
- redis Medium key-value The key value pair is not set properly , cause key Correspondingvalue valueParticularly large .
- about list,set This type of structure ,Invalid dataNot deleted in time .
- Inaccurate business analysis , Lead toIn real business value valueToo big , Such as hot issues .
BigKey How to locate the problem
- Use redis The order that comes with you redis-cli --bigkeys Online scan big key, The information displayed is not detailed , And this command is not blocked , So it doesn't matter redis Normal use of .

- Using third-party tools redis-rdb-tools, It will be used first in the process of use bgsave command dump One rdb Mirror image , Then analyze the image , because bgsave yes redis A child thread in the generates images , Does not affect redis External services .
- debug object Method
C:\Users\93676\Desktop>redis-cli
127.0.0.1:6379> set a "sadasd"
OK
127.0.0.1:6379> debug object a
Value at:00007FCD3EC12FE0 refcount:1 encoding:embstr serializedlength:7 lru:14754079 lru_seconds_idle:15BigKey Impact
- Memory consumption increases
- The network congestion delay increases
- IO The blocking delay increases
- BigKey It's difficult to move
BigKey How to solve the problem
- in the light of BigKey ConductSplit
- clearInvalidThe data of
- Compress the corresponding BigKey Of value
- monitor Redis Medium memory , bandwidth , growth rate
Warm reminder : This is a little bit more , Please look down carefully expand
heat key problem
summary
边栏推荐
- Principle and application of CMOS transmission gate
- 已有6名员工确诊!三星第三度关闭龟尾手机工厂!
- In depth understanding of redis master-slave principle
- Drawing three coordinate (axis) diagram with MATLAB
- 【无标题】
- Relationship between DBM and VPP and Vpeak
- 电磁继电器
- Nodejs npm常用指令总结
- Leetcode383 ransom letter
- Leetcode-226-flip binary tree
猜你喜欢

视频人体行为检测

基于简化的评分卡、Smote采样和随机森林的信贷违约预测

BUUCTF刷题十一道(05)

SparkSQL的UDF及分析案例,220726,,

Memo mode - unity

If there is no reference ground at all, guess if you can control the impedance?

Direct insertion sort of seven sorts

An2021 software installation and basic operation (new file / export)

Leetcode383 ransom letter

vs2019 release模式调试:此表达式有副作用,将不予计算。
随机推荐
Temperature relay
视频人体行为检测
Leetcode-55-jump game
Memo mode - unity
Kubernetes binary deployment - theoretical part
SQL注入 Less26a(布尔盲注)
Feed流应用重构-架构篇
ADI、世健、骏龙科技共同捐赠230万元助力湖北抗疫
Excel only wants to visualize charts and make data move? Yes, come and watch (with a large number of templates to download)
美国官员建议特朗普阻止英飞凌收购赛普拉斯
Cocos: simple application of ccpdistance function and the function of eyeball rotating in orbit with fingers
QT常见操作合集
CMOS switch (II)_ Parameter extraction
Wireshark filter rule notes, with software
In depth understanding of redis master-slave principle
Maximum sum of jz42 continuous subarray (force buckle) (GIF diagram)
Multi tenant SaaS cloud platform framework
Leetcode-39-total number of combinations
Solid state relay
基于简化的评分卡、Smote采样和随机森林的信贷违约预测