当前位置:网站首页>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
边栏推荐
- Pytorch---使用Pytorch实现LinkNet进行语义分割
- redis缓存
- 杰理之AD 系列 MIDI 功能说明【篇】
- What are the functional modules of RFID warehouse management system solution
- Golang中UTF编码和字符集
- Difference between ApplicationContext and beanfactory (MS)
- [Shenbo introduction] VI How to contact your favorite doctoral tutor
- The video sound of station B is very low - solution
- Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
- Huawei ENSP simulator configures DHCP for router
猜你喜欢

torch. Tensor and torch The difference between tensor

UTF encoding and character set in golang

RFID仓库管理系统解决方案有哪些功能模块

每日一题-LeetCode1200-最小绝对差-数组-排序
![[server data recovery] a case of RAID5 data recovery stored in a brand of server](/img/a2/e03dcb30276d115969fbd00f1830dc.png)
[server data recovery] a case of RAID5 data recovery stored in a brand of server

【1200. 最小絕對差】

shp数据制作3DTiles白膜

Ten years' experience of byte test engineer directly hits the pain point of UI automation test

Huawei ENSP simulator realizes communication security (switch)

FastDfs的快速入门,三分钟带你上传下载文件到云服务器
随机推荐
Y56. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (29)
Hands on deep learning (III) -- convolutional neural network CNN
Why is TCP three handshakes and four waves
冰河的海报封面
6月“墨力原创作者计划”获奖名单公布!邀您共话国产数据库
VIM asynchronous problem
华为ensp模拟器实现通信安全(交换机)
软件开发过中的采购
torch. Tensor and torch The difference between tensor
vim异步问题
LeetCode+ 81 - 85 单调栈专题
[micro service SCG] use of predict
Introduction to pressure measurement of JMeter
【Try to Hack】宽字节注入
redis布隆过滤器
Go language notes (2) some simple applications of go
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??
Vue cleans up the keepalive cache scheme in a timely manner
LeetCode 7. Integer inversion
实战模拟│JWT 登录认证