当前位置:网站首页>A few words explain redis cache penetration, breakdown, avalanche, and redis sentinel
A few words explain redis cache penetration, breakdown, avalanche, and redis sentinel
2022-07-04 11:41:00 【Samsara】
A few words Redis Cache penetration 、 breakdown 、 An avalanche 、Redis sentry
This is an article that bloggers think is very easy to understand
Redis( Master slave copy , Sentinel mechanism , Cache penetration 、 Cache breakdown 、 Cache avalanche , Solve the problem of buffer penetration by using Bloom filter )
type | Database state | Cache state |
---|---|---|
Cache penetration | There is no such data in the database | There is no such data in the cache |
Cache breakdown | The database has this data | Cache single point expiration |
Cache avalanche | The database has this data | A large number of caches have expired |
Solution
- Cache penetration :BloomFilter Intercept 、 The query results are stored in the cache and the life cycle is set ( Expiration time ) Shorter
- Cache breakdown : Due to the continuous operation of single point expired data , Therefore, you can set the hotspot data to never expire , Mutexes can also be added to restrict a large number of threads from accessing data at the same time
- Cache avalanche : Because a large number of data are expired , Therefore, it can be set randomly key The expiration time of , Cluster distribution can also query multiple key Put them in different libraries , You can also refresh the cache regularly
Redis sentry
yes Redis A process of , Monitor multiple by running independently Redis The situation of , Yes Master monitor , Also on the slave monitor , Keep it high redis The usability of . Sentinel cluster means that sentinels can also monitor each other's situation , More availability .
边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
- TCP fast retransmission sack mechanism
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
- Local MySQL forgot the password modification method (Windows)
- Configure SSH certificate login
- thread
- Btrace tells you how to debug online without restarting the JVM
- Climb Phoenix Mountain on December 19, 2021
- 8.8.1-PointersOnC-20220214
- QQ group administrators
猜你喜欢
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
(2021-08-20) web crawler learning 2
CSDN documentation specification
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9
How to judge the advantages and disadvantages of low code products in the market?
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
Reptile learning winter vacation series (2)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 12
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 24
Automatic translation between Chinese and English
随机推荐
2021-08-09
Detailed array expansion analysis --- take you step by step analysis
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Introduction to Lichuang EDA
守护进程Xinted和日志记录Syslogd
thread
Detailed explanation of classic process synchronization problems
Elevator dispatching (pairing project) ②
Canoe: what is vtsystem
Cacti主机模板之定制版
VPS安装Virtualmin面板
LxC shared directory addition and deletion
Common tips
Configure SSH key to realize login free
Definition and method of string
Application of slice
Btrace tells you how to debug online without restarting the JVM
Simple understanding of generics
Ultimate bug finding method - two points
Is Sanli futures safe? How to open a futures account? How to reduce the handling charge of futures at present?