当前位置:网站首页>Redis cache avalanche
Redis cache avalanche
2022-07-19 09:46:00 【mysnsds】
Cache avalanche : Cache failure in a large area at the same time , The subsequent requests fall directly onto the database , Cause the database to bear a large number of requests in a short time .
It's like an avalanche , You can imagine the pressure of the database , It's possible that you've been knocked down by so many requests .
for instance : There is something wrong with the cache module of the system, for example, it is unavailable due to downtime . Cause all access to the system , We have to go to the database . Then the pressure on the database soared , Request processing is not enough , Cause downtime .
terms of settlement
1、 in the light of Redis Service unavailability :
- use Redis Cluster and sentinel mode , To avoid problems on a single machine, the entire cache service cannot be used .
- Current limiting , Avoid processing large amounts of requests at the same time .
2、 In case of hotspot cache failure :
- Set different expiration time, such as randomly setting cache expiration time . This is different key It will not expire at the same time , It will not cause a large amount of data to be inaccessible at one time .
- Cache never fails .
边栏推荐
猜你喜欢

es索引、类型(mapping)、文档、ik分词器

Vim详解

OLED displays how to understand the character sizes of 12*6, 16*8, 24*12, etc

第一部分—C语言基础篇_3. 运算符与表达式

Detailed explanation of the different usage of PIP and PIP3

将视频格式转换为gif图片格式

Part I - Fundamentals of C language_ 1. Overview of C language
![[英雄星球七月集训LeetCode解题日报] 第17日 宽搜](/img/92/9b8e3a710430d37564d7ea3f28168f.png)
[英雄星球七月集训LeetCode解题日报] 第17日 宽搜

【C语言】自定义类型初阶知识点

565. Array nesting
随机推荐
第八章 STL 之 vector
第4章-一阶多智体系统一致性 -> 切换拓扑系统一致性
redis缓存雪崩
Questions d'entrevue - concevoir des cas d'essai pour:: memcpy
Chapter 4 - first order multi-agent system consistency - > continuous time system consistency with time delay [program code]
第一部分—C语言基础篇_4. 程序流程结构
D. Mark and Lightbulbs
Chapter 12 list of STL
易贝按关键字搜索EBAY商品 API 返回值说明
Flink小知识--任务调度slot的配置 slotSharingGroup
代码庆端午--粽你心意
第一部分—C语言基础篇_6. 函数
如何在监控主机上单独部署agent——WGCLOUD
MySQL view
Fundamentals of C language -- 2-1 pointer and wild pointer
Chapter 4 - first order multi-agent system consistency - > switching topology system consistency [program code]
2022-07-16:以下go语言代码输出什么?A:[];B:[5];C:[5 0 0 0 0];D:[0 0 0 0 0]。 package main imp
Part I - Fundamentals of C language_ 6. Function
2022.7.16-----leetcode.剑指offer.041
第4章-一阶多智体系统一致性 -> 领航跟随系统一致性