当前位置:网站首页>Redis RDB snapshot
Redis RDB snapshot
2022-07-01 23:27:00 【Mar, LiuNian】
List of articles
2 Commands to generate snapshots
save In the main thread , Will block the main thread
bgsave Create sub processes to execute snapshot tasks
Full snapshot
Take a snapshot of all data
Incremental snapshot
Make changes based on the last full snapshot
Suppose that t0 Take a full snapshot at any time
stay t1 The data change operation is carried out at any time
stay t2 To take a snapshot, you need to know t1 What did you do at any time
Doing incremental backup requires additional overhead to record data changes
Full snapshot + AOF
redis 4 In the future, it provides services like mysql Same snapshot + journal To recover data
Read / write processing of snapshots
hypothesis redis Large amount of data ,t0 moment data A = 10
t0 Take snapshots all the time , Snapshot time 10 minute , After the snapshot A It should be equal to 10
If the ninth minute will A Change to 9. How to ensure the results of snapshots A = 10
Give Way redis Write operations , Waiting for a snapshot is unrealistic
redis Solve this problem , Using the write time copy of the operating system
When taking a snapshot , The subprocess copies the necessary data of the memory of the main thread , And point to the same memory space , Share the same data .
When in the main thread redis When modifying data , Will reallocate a memory space ( copy ), Copy the original data into a copy for the sub process to use
边栏推荐
- 距离度量 —— 汉明距离(Hamming Distance)
- notBlank 和 notEmpty
- Huisheng Huiying 2022 intelligent, fast and simple video editing software
- 2022 safety officer-c certificate examination question simulation examination question bank and simulation examination
- Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
- The online beggar function of Japanese shopping websites
- 转行软件测试,知道这四点就够了!
- Linux foundation - centos7 offline installation of MySQL
- y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
- Postgresql源码(57)HOT更新为什么性能差距那么大?
猜你喜欢

2021 RoboCom 世界机器人开发者大赛-高职组复赛

2022 safety officer-c certificate examination question simulation examination question bank and simulation examination

【必会】BM41 输出二叉树的右视图【中等+】

2022年危险化学品经营单位安全管理人员考试题及在线模拟考试

mt管理器测试滑雪大冒险

from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘

问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
![[micro service sentinel] sentinel integrates openfeign](/img/8b/46156255fd980eb422c7e05d5af7ee.png)
[micro service sentinel] sentinel integrates openfeign

Postgresql源码(57)HOT更新为什么性能差距那么大?

How to display real-time 2D map after rviz is opened
随机推荐
SWT / anr problem - SWT causes low memory killer (LMK)
2022 safety officer-c certificate examination question simulation examination question bank and simulation examination
2021 RoboCom 世界机器人开发者大赛-高职组初赛
Jielizhi Bluetooth headset quality control and production skills [chapter]
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
Create Ca and issue certificate through go language
从第三次技术革命看企业应用三大开发趋势
建模和影视后期有什么关联?
2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板
Distance measurement - Hamming distance
[micro service sentinel] sentinelresourceaspect details
Matplotlib常用設置
[LeetCode] 最后一个单词的长度【58】
Leetcode(34)——在排序数组中查找元素的第一个和最后一个位置
Redis AOF日志
2022安全员-C证考试题模拟考试题库及模拟考试
Anomaly-Transformer (ICLR 2022 Spotlight)复现过程及问题
转行软件测试,知道这四点就够了!
【小程序】通过scroll-view组件实现左右【滑动】列表
Matplotlib常用图表
