当前位置:网站首页>redis RDB AOF
redis RDB AOF
2022-07-04 20:18:00 【每日一悟】
RDB描述的是快照、副本
AOF描述的是日志
redis是怎样完成rdb方式的,默认一个时点数据
第一个命令的方式:save命令触发前台阻塞,bgsave命令触发后端异步非阻塞方式
第二个配置文件中给出bgsave的规则,用save这个标识
RDB弊端:不支持拉链,只支持一个dump.rdb,丢失数据相对多一点,时点与时点之间窗口数据容易丢失
RDB优点:类似java中的序列化,恢复速度较快
AOF优点:对数据少
AOF弊端:体量无限变大,恢复慢
redis中,RDB和AOF可以同时开启,如果用了AOF,只会用AOF恢复,4.0之后,AOF中包含RDB全量,增加记录新的写操作
AOF怎么保住优点,减小弊端?
hdfs,fsimage+edits.log让日志只记录增量合并的过程
4.0之前,重写(删除抵消命令,合并重复的命令),最终也是一个纯指令的日志文件
4.0之后,重写,将老的数据RDB到AOF文件中,并将增量的以指令的方式APPEND到AOF,AOF是一个混合体,利用了RDB的快和日志的全量
边栏推荐
- 【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
- Automatic generation of interface automatic test cases by actual operation
- colResizable.js自动调整表格宽度插件
- Roast B station charges, is it because it has no money?
- 杰理之增加进关机前把触摸模块关闭流程【篇】
- Quelques suggestions pour la conception de l'interface
- MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
- shp数据制作3DTiles白膜
- ACM组合计数入门
- Hands on deep learning (III) -- convolutional neural network CNN
猜你喜欢

WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?

HWiNFO硬件检测工具v7.26绿色版

接口設計時的一些建議

Advantages of RFID warehouse management system solution

Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t

Leetcode+ 81 - 85 monotone stack topic

Idea configuration standard notes

PS竖排英文和数字文字怎么改变方向(变竖直显示)

华为模拟器ensp的路由配置以及连通测试

多模輸入事件分發機制詳解
随机推荐
ACM组合计数入门
华为ensp模拟器 DNS服务器的配置
[micro service SCG] use of predict
Procurement in software development
c语言函数形参自增自减情况分析
Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
LeetCode 8. String conversion integer (ATOI)
华为模拟器ensp常用命令
杰理之AD 系列 MIDI 功能说明【篇】
colResizable.js自动调整表格宽度插件
多模輸入事件分發機制詳解
UTF encoding and character set in golang
Huawei simulator ENSP common commands
华为ensp模拟器 实现多个路由器的设备可以相互访问
See how Tencent does interface automation testing
The video sound of station B is very low - solution
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
nmap扫描
华为ensp模拟器实现通信安全(交换机)
【1200. 最小绝对差】