当前位置:网站首页>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.
边栏推荐
猜你喜欢
Basic properties of binary tree + oj problem analysis
Flutter learning 2-dart learning
Multi-threaded query results, add List collection
day10-字符串作业
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
第四讲 back propagation 反向传播
span标签和p标签的区别
"Recursion" recursion concept and typical examples
Database experiment five backup and recovery
使用二维码解决固定资产管理的难题
随机推荐
电话溥功能
学习总结week3_1函数
分布式和集群
开发一套高容错分布式系统
【过一下12】整整一星期没记录
将照片形式的纸质公章转化为电子公章(不需要下载ps)
RL强化学习总结(一)
HQL语句执行过程
Using QR codes to solve fixed asset management challenges
第四讲 back propagation 反向传播
After controlling the export file in MySQL, it becomes \N. Is there any solution?
redis事务
ES6 生成器
server disk array
[cesium] element highlighting
day12函数进阶作业
SQL(二) —— join窗口函数视图
uva1325
day11-函数作业
Structured Light 3D Reconstruction (2) Line Structured Light 3D Reconstruction