当前位置:网站首页>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,开销大的问题。
边栏推荐
- jvm three heap and stack
- number_gets the specified number of decimals
- 2023年信息与通信工程国际会议(JCICE 2023)
- How to quickly upgrade your Taobao account to a higher level
- MySQL中控制导出文件后变为了\N有什么解决方案吗?
- uva1325
- 8.04 Day35-----MVC three-tier architecture
- 【学习笔记之菜Dog学C】动态内存管理之经典笔试题
- RL强化学习总结(一)
- Understanding and use of C# on set() and get() methods
猜你喜欢

server disk array

Detailed Explanation of Redis Sentinel Mode Configuration File

Homework 8.4 Interprocess Communication Pipes and Signals

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

Day019 Method overriding and introduction of related classes

MySQL Foundation (1) - Basic Cognition and Operation

Multi-threaded query results, add List collection

Reverse theory knowledge 4

Difference between for..in and for..of

ESP32 485 Illuminance
随机推荐
Using QR codes to solve fixed asset management challenges
延迟加载js方式async与defer区别
server disk array
software management rpm
Day019 Method overriding and introduction of related classes
Excel Paint
ansible各个模块详解
淘宝账号如何快速提升到更高等级
human weakness
二叉树基本性质+oj题解析
Dephi逆向工具Dede导出函数名MAP导入到IDA中
LAB Semaphore Implementation Details
[WeChat applet] WXML template syntax - conditional rendering
Flutter learning three-Flutter basic structure and principle
[cesium] element highlighting
"Recursion" recursion concept and typical examples
【无标题】
C language - vernacular to understand the original code, inverse code and complement code
【cesium】Load and locate 3D Tileset
Shell(4) Conditional Control Statement