当前位置:网站首页>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
边栏推荐
- sizeof关键字
- 2014 Alibaba web pre intern project analysis (1)
- Classification, function and usage of MySQL constraints
- CocosCreator+TypeScripts自己写一个对象池
- Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
- Project duplicate template
- memcached
- Clip +json parsing converts the sound in the video into text
- Config:invalid signature solution and troubleshooting details
- 做国外LEAD2022年下半年几点建议
猜你喜欢
Leetcode exercise - Sword finger offer 26 Substructure of tree
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Sword finger offer question brushing record 1
MATLAB小技巧(27)灰色预测
MySQL authentication bypass vulnerability (cve-2012-2122)
Enterprises do not want to replace the old system that has been used for ten years
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
On the problems of born charge and non analytical correction in phonon and heat transport calculations
MySQL----初识MySQL
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
随机推荐
CocosCreator+TypeScripts自己写一个对象池
NPM cannot install sharp
Detailed explanation of ThreadLocal
「小程序容器技术」,是噱头还是新风口?
POJ 1258 Agri-Net
How big is the empty structure?
做国外LEAD2022年下半年几点建议
NPDP certification | how do product managers communicate across functions / teams?
DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
Jafka来源分析——Processor
View
Sword finger offer question brushing record 1
Clip +json parsing converts the sound in the video into text
Leetcode exercise - Sword finger offer 26 Substructure of tree
BasicVSR_ Plusplus master test videos and pictures
ICLR 2022 | pre training language model based on anti self attention mechanism
Extern keyword
Financial professionals must read book series 6: equity investment (based on the outline and framework of the CFA exam)
POJ 1094 sorting it all out