当前位置:网站首页>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
边栏推荐
- pytorch_ Yolox pruning [with code]
- What are the specific steps and schedule of IELTS speaking?
- 2022-07-05 stonedb sub query processing parsing time analysis
- 2022-07-05 use TPCC to conduct sub query test on stonedb
- 如何实现文字动画效果
- Plafond du tutoriel MySQL, bien collecté, regardez lentement
- 允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我
- Return keyword
- Const keyword
- View
猜你喜欢
C# 三种方式实现Socket数据接收
关于声子和热输运计算中BORN电荷和non-analytic修正的问题
室内LED显示屏应该怎么选择?这5点注意事项必须考虑在内
CSDN 上传图片取消自动加水印的方法
Matlab tips (27) grey prediction
Introduction to network basics
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
Clip +json parsing converts the sound in the video into text
案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
[compilation principle] LR (0) analyzer half done
随机推荐
Const keyword
【编译原理】做了一半的LR(0)分析器
Project duplicate template
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
Adavit -- dynamic network with adaptive selection of computing structure
POJ 1258 Agri-Net
General implementation and encapsulation of go diversified timing tasks
UVa 11732 – strcmp() Anyone?
NPDP certification | how do product managers communicate across functions / teams?
Chapter 19 using work queue manager (2)
第十九章 使用工作队列管理器(二)
如何实现文字动画效果
【踩坑合辑】Attempting to deserialize object on CUDA device+buff/cache占用过高+pad_sequence
MySQL----初识MySQL
Clip +json parsing converts the sound in the video into text
CUDA exploration
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
C# 三种方式实现Socket数据接收
The statement that allows full table scanning does not seem to take effect set odps sql. allow. fullscan=true; I