当前位置:网站首页>Redis persistence mechanism
Redis persistence mechanism
2022-07-06 22:50:00 【InfoQ】
How to guarantee Redis Data can be recovered by restarting after being hung up ?
What is? RDB Persistence ?
redis.conf
save 900 1 # stay 900 second (15 minute ) after , If at least 1 individual key change ,Redis Will trigger automatically BGSAVE Command create snapshot .
save 300 10 # stay 300 second (5 minute ) after , If at least 10 individual key change ,Redis Will trigger automatically BGSAVE Command create snapshot .
save 60 10000 # stay 60 second (1 minute ) after , If at least 10000 individual key change ,Redis Will trigger automatically BGSAVE Command create snapshot .
What is? AOF Persistence ?
appendonly yes
server.aof_buf
appendfsync
appendonly.aof
appendfsync always # Write every time a data change occurs AOF file , This will seriously reduce Redis The speed of
appendfsync everysec # Sync every second , Explicitly synchronize multiple write commands to the hard disk
appendfsync no # Let the operating system decide when to synchronize
appendfsync everysec
边栏推荐
- 案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
- Const keyword
- European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
- BasicVSR_ Plusplus master test videos and pictures
- NPDP certification | how do product managers communicate across functions / teams?
- MySQL authentication bypass vulnerability (cve-2012-2122)
- Matlab tips (27) grey prediction
- Export MySQL table data in pure mode
- Clip +json parsing converts the sound in the video into text
- uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
猜你喜欢
Machine test question 1
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
signed、unsigned关键字
config:invalid signature 解决办法和问题排查详解
C# 三种方式实现Socket数据接收
Aardio - does not declare the method of directly passing float values
Signed and unsigned keywords
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
随机推荐
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
signed、unsigned关键字
【编译原理】做了一半的LR(0)分析器
Cloud native technology container knowledge points
Should novice programmers memorize code?
存币生息理财dapp系统开发案例演示
(18) LCD1602 experiment
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
How to use flexible arrays?
How big is the empty structure?
General implementation and encapsulation of go diversified timing tasks
Windows Auzre 微软的云计算产品的后台操作界面
Extern keyword
Redis 持久化机制
欧洲生物信息研究所2021亮点报告发布:采用AlphaFold已预测出近1百万个蛋白质
OpenNMS separation database
memcached
第十九章 使用工作队列管理器(二)
C# 三种方式实现Socket数据接收
关于声子和热输运计算中BORN电荷和non-analytic修正的问题