当前位置:网站首页>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,开销大的问题。
边栏推荐
猜你喜欢

【cesium】Load and locate 3D Tileset

【学生毕业设计】基于web学生信息管理系统网站的设计与实现(13个页面)

MySQL基础(一)---基础认知及操作

【转】什么是etcd

Analyses the mainstream across technology solutions

【cesium】3D Tileset 模型加载并与模型树关联

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

WPF中DataContext作用

Detailed explanation of each module of ansible

The underlying mechanism of the class
随机推荐
"Recursion" recursion concept and typical examples
uva1325
Flutter learning - the beginning
C语言-大白话理解原码,反码和补码
Multi-threaded query results, add List collection
Day019 Method overriding and introduction of related classes
Distributed systems revisited: there will never be a perfect consistency scheme...
【无标题】
jvm 三 之堆与栈
[WeChat applet] WXML template syntax - conditional rendering
结构光三维重建(二)线结构光三维重建
Application status of digital twin technology in power system
Requests库部署与常用函数讲解
使用二维码解决固定资产管理的难题
Algorithms - ones and zeros (Kotlin)
mysql数据库表什么字段类型的存储长度最大?
请写出SparkSQL语句
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
upload上传图片到腾讯云,如何上传图片
数字孪生技术在电力系统中的应用现状