当前位置:网站首页>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
边栏推荐
猜你喜欢

Introduction to pressure measurement of JMeter

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

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

华为ensp模拟器 三层交换机

测试员的算法面试题-找众数

Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system

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

shp数据制作3DTiles白膜

CAD中能显示打印不显示
![[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
随机推荐
Configuration of DNS server of Huawei ENSP simulator
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Introduction to pressure measurement of JMeter
五子棋 上班摸鱼工具 可局域网/人机
Huawei ENSP simulator enables devices of multiple routers to access each other
Google colab踩坑
Routing configuration and connectivity test of Huawei simulator ENSP
Roast B station charges, is it because it has no money?
记一次重复造轮子(Obsidian 插件设置说明汉化)
ApplicationContext 与 BeanFactory 区别(MS)
Difference between ApplicationContext and beanfactory (MS)
为什么说不变模式可以提高性能
[1200. Minimum absolute difference]
网络命名空间
redis管道
VIM asynchronous problem
【解决方案】PaddlePaddle 2.x调用静态图模式
[1200. Différence absolue minimale]
Jmeter 之压测入门
每日一题-LeetCode1200-最小绝对差-数组-排序