当前位置:网站首页>redis 持久化
redis 持久化
2022-08-05 05:12:00 【价值成长】
rdb和aof持久化策略可以共存
推荐两种持久化策略都用
redis优先载入aof文件恢复数据
1. rdb (redis database)
时间段中内存中的数据写入磁盘。快照存储。
fork一个子进程,做持久化。写入/读取临时文件。主进程不进行IO操作。
适合大规模数据恢复,数据恢复完整性差。
2. aof (append only file)
以日志形式记录每个写操作,只许追加文件。恢复时根据日志文件将指令执行一次。
redis对aof文件重写,64m,不至于太大。
aof保存的数据更完整。最差丢失2s数据。
频繁IO,rewrite。
3. Master-Slave Replicate
解决aof频繁的IO,开销大的问题。
边栏推荐
- 【学习笔记之菜Dog学C】动态内存管理之经典笔试题
- The role of DataContext in WPF
- 延迟加载js方式async与defer区别
- 数字_获取指定位数的小数
- Flutter learning three-Flutter basic structure and principle
- Mysql5.7 二进制 部署
- Flutter 父子组件如何都能收到点击事件
- [Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
- Structured Light 3D Reconstruction (2) Line Structured Light 3D Reconstruction
- 二叉树基本性质+oj题解析
猜你喜欢
OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
Application status of digital twin technology in power system
upload upload pictures to Tencent cloud, how to upload pictures
8.04 Day35-----MVC三层架构
【转】什么是etcd
服务器磁盘阵列
mutillidae download and installation
The solution to the failure to read channel information when dedecms generates a message in the background
jvm three heap and stack
dedecms后台生成提示读取频道信息失败的解决方法
随机推荐
dedecms后台生成提示读取频道信息失败的解决方法
The mall background management system based on Web design and implementation
Develop a highly fault-tolerant distributed system
[WeChat applet] WXML template syntax - conditional rendering
C#关于set()和get()方法的理解及使用
The role of DataContext in WPF
Flutter TapGestureRecognizer 如何工作
u-boot调试定位手段
1.3 mysql批量插入数据
coppercam primer [6]
How does the Flutter TapGestureRecognizer work
Day14 jenkins deployment
RL reinforcement learning summary (1)
结构光三维重建(二)线结构光三维重建
Flutter real machine running and simulator running
ESP32 485 Illuminance
基于Web的商城后台管理系统的设计与实现
u-boot in u-boot, dm-pre-reloc
Please write the SparkSQL statement
Redis - 13. Development Specifications