当前位置:网站首页>redis persistence
redis persistence
2022-08-05 05:25:00 【value growth】
rdb and aof persistence strategies can coexist
Both persistence strategies are recommended
redis preferentially loads the aof file to restore data
1. rdb (redis database)
The data in memory during the time period is written to disk.Snapshot storage.
Fork a child process for persistence.Write/read temporary files.The main process does not perform IO operations.
Suitable for large-scale data recovery, the integrity of data recovery is poor.
2. aof (append only file)
Log each write operation, only append files.The command is executed once according to the log file during recovery.
redis rewrites the aof file, 64m, not too big.
aof saves more complete data.Worst loss of 2s data.
Frequent IO, rewrite.
3. Master-Slave Replicate
Solve the problem of frequent IO and high overhead of aof.
边栏推荐
猜你喜欢
【过一下9】卷积
开发一套高容错分布式系统
多线程查询结果,添加List集合
第三讲 Gradient Tutorial梯度下降与随机梯度下降
Matplotlib(三)—— 实践
DOM and its applications
【过一下3】卷积&图像噪音&边缘&纹理
Flutter real machine running and simulator running
[Go through 3] Convolution & Image Noise & Edge & Texture
LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]
随机推荐
【读书】长期更新
[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management
1.3 mysql batch insert data
redis事务
RL强化学习总结(一)
LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]
"PHP8 Beginner's Guide" A brief introduction to PHP
MySQL Foundation (1) - Basic Cognition and Operation
day12函数进阶作业
软件设计 实验四 桥接模式实验
学习总结week3_4类与对象
UVA10827
学习总结week2_4
【微信小程序】WXML模板语法-条件渲染
redis cache clearing strategy
vscode+pytorch use experience record (personal record + irregular update)
The role of the range function
server disk array
[Decoding tools] Some online tools for Bitcoin
【Untitled】