当前位置:网站首页>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.
边栏推荐
- 【记一下1】2022年6月29日 哥和弟 双重痛苦
- Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)
- uva1325
- [cesium] 3D Tileset model is loaded and associated with the model tree
- Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!
- Wise Force Deleter强制删除工具
- 2023年信息与通信工程国际会议(JCICE 2023)
- vscode+pytorch use experience record (personal record + irregular update)
- 2023 International Conference on Information and Communication Engineering (JCICE 2023)
- 第二讲 Linear Model 线性模型
猜你喜欢

多线程查询结果,添加List集合

OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems

Error creating bean with name 'configDataContextRefresher' defined in class path resource

第四讲 back propagation 反向传播

将照片形式的纸质公章转化为电子公章(不需要下载ps)

Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!

Qt制作18帧丘比特表白意中人、是你的丘比特嘛!!!

jvm 三 之堆与栈

开发一套高容错分布式系统

第二讲 Linear Model 线性模型
随机推荐
将照片形式的纸质公章转化为电子公章(不需要下载ps)
小白一枚各位大牛轻虐虐
数据库实验五 备份与恢复
u-boot in u-boot, dm-pre-reloc
The underlying mechanism of the class
Redis - 13. Development Specifications
数字_获取指定位数的小数
第四讲 back propagation 反向传播
Lecture 5 Using pytorch to implement linear regression
2023年信息与通信工程国际会议(JCICE 2023)
Matplotlib(一)—— 基础
结构光三维重建(二)线结构光三维重建
vscode+pytorch use experience record (personal record + irregular update)
Geek卸载工具
结构光三维重建(一)条纹结构光三维重建
【过一下10】sklearn使用记录
2022 Hangzhou Electric Multi-School 1st Session 01
2023 International Conference on Information and Communication Engineering (JCICE 2023)
Multi-threaded query results, add List collection
span标签和p标签的区别