当前位置:网站首页>redis RDB AOF
redis RDB AOF
2022-07-04 21:19:00 【Daily enlightenment】
RDB The description is a snapshot 、 copy
AOF It describes the log
redis How is it done rdb The way of , The default time point data
The way of the first command :save Command triggers foreground blocking ,bgsave The command triggers the back-end asynchronous non blocking mode
The second configuration file gives bgsave The rules of , use save This logo
RDB disadvantages : Zippers are not supported , Only one... Is supported dump.rdb, Relatively more data is lost , It is easy to lose window data between time points
RDB advantage : similar java Serialization in , Faster recovery
AOF advantage : Less data
AOF disadvantages : Infinitely larger , Slow recovery
redis in ,RDB and AOF It can be turned on at the same time , If used AOF, Only use AOF recovery ,4.0 after ,AOF Contained in the RDB Total quantity , Add record new write operation
AOF How to keep the advantages , Reduce disadvantages ?
hdfs,fsimage+edits.log Let the log record only the incremental consolidation process
4.0 Before , rewrite ( Delete offset command , Merge repeated commands ), Finally, it is a pure instruction log file
4.0 after , rewrite , Put the old data RDB To AOF In file , And incrementally in the form of instructions APPEND To AOF,AOF It's a mixture , Take advantage of RDB Fast and full amount of logs
边栏推荐
- VIM asynchronous problem
- Day24:文件系统
- 华为ensp模拟器 给路由器配置DHCP
- 吐槽 B 站收费,是怪它没钱么?
- 数十亿公民信息遭泄漏!公有云上的数据安全还有“救”吗?
- 五子棋 上班摸鱼工具 可局域网/人机
- 阿里云国际版CDN的优势
- HMS Core 统一扫码服务
- y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)
- 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??
猜你喜欢
随机推荐
redis事务
[buuctf.reverse] 151_[FlareOn6]DnsChess
GVM use
__init__() missing 2 required positional arguments 不易查明的继承错误
嵌入式TC 测试用例
go defer的使用说明
uniapp 富文本编辑器使用
Difference between ApplicationContext and beanfactory (MS)
华为模拟器ensp的路由配置以及连通测试
测试用例 (TC)
Jmeter 之压测入门
[1200. Minimum absolute difference]
Configuration of DNS server of Huawei ENSP simulator
LeetCode 8. 字符串转换整数 (atoi)
伦敦银走势图分析的新方法
redis发布订阅的使用
Roast B station charges, is it because it has no money?
acwing 3302. Expression evaluation
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
Huawei ENSP simulator realizes communication security (switch)






![[1200. Différence absolue minimale]](/img/fa/4ffbedd8f24c75a20d3eaeaf0430ae.png)

