当前位置:网站首页>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的快和日志的全量
边栏推荐
猜你喜欢

接口设计时的一些建议

多模輸入事件分發機制詳解

FastDfs的快速入门,三分钟带你上传下载文件到云服务器

Jmeter 之压测入门

From automation to digital twins, what can Tupo do?

torch.tensor和torch.Tensor的区别

Automatic generation of interface automatic test cases by actual operation

NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??

五子棋 上班摸鱼工具 可局域网/人机

JS卡牌样式倒计时天数
随机推荐
Ten years' experience of byte test engineer directly hits the pain point of UI automation test
Idea configuration standard notes
冰河的海报封面
Introduction to pressure measurement of JMeter
卷积神经网络在深度学习中新发展的5篇论文推荐
How to solve the problem that win11 cannot write the value to the registry key?
2021 CCPC 哈尔滨 B. Magical Subsequence(思维题)
Android原生数据库的基本使用和升级
Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
js 3D爆炸碎片图片切换js特效
NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
Jekins initialization password not found or not found
【申博攻略】六.如何联系心仪的博导
LeetCode 7. 整数反转
扩展你的KUBECTL功能
shp数据制作3DTiles白膜
【optimtool.unconstrain】无约束优化工具箱
华为ensp模拟器 三层交换机
[Shenbo introduction] VI How to contact your favorite doctoral tutor
BFC interview Brief