当前位置:网站首页>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
边栏推荐
猜你喜欢
每日一题-LeetCode1200-最小绝对差-数组-排序
[1200. Minimum absolute difference]
华为ensp模拟器实现通信安全(交换机)
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
RFID仓库管理系统解决方案有哪些功能模块
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
接口設計時的一些建議
Hands on deep learning (III) -- convolutional neural network CNN
render函数与虚拟dom
Detailed explanation of multi-mode input event distribution mechanism
随机推荐
Why is TCP three handshakes and four waves
Advantages of RFID warehouse management system solution
Roast B station charges, is it because it has no money?
TweenMax表情按钮js特效
Huawei ENSP simulator enables devices of multiple routers to access each other
华为模拟器ensp的路由配置以及连通测试
MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
Sword finger offer II 80-100 (continuous update)
D3.js+Three.js数据可视化3d地球js特效
FastDfs的快速入门,三分钟带你上传下载文件到云服务器
杰理之AD 系列 MIDI 功能说明【篇】
五子棋 上班摸鱼工具 可局域网/人机
Test case (TC)
RFID仓储管理系统解决方案的优点
华为ensp模拟器 DNS服务器的配置
admas零件名重复
2021 CCPC 哈尔滨 B. Magical Subsequence(思维题)
【optimtool.unconstrain】无约束优化工具箱
Huawei ENSP simulator configures DHCP for router
Actual combat simulation │ JWT login authentication