当前位置:网站首页>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
边栏推荐
- Daily three questions 6.29
- js——arguments的使用
- 2021 RoboCom 世界机器人开发者大赛-本科组初赛
- What are the common types of points mall games?
- The online beggar function of Japanese shopping websites
- The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
- Matplotlib常用設置
- MySQL -- convert rownum in Oracle to MySQL
- Zhongang Mining: it has inherent advantages to develop the characteristic chemical industry dominated by fluorine chemical industry
- Practical application and extension of plain framework
猜你喜欢
Yunxin small class | common cognitive misunderstandings in IM and audio and video
Redis RDB快照
Airserver latest win64 bit personal screen projection software
AirServer最新Win64位个人版投屏软件
What is the relationship between modeling and later film and television?
玻璃马赛克
Paramètres communs de matplotlib
ARP报文头部格式和请求流程
2022年最佳智能家居开源系统:Alexa、Home Assistant、HomeKit生态系统介绍
会声会影2022智能、快速、简单的视频剪辑软件
随机推荐
jpa手写sql,用自定义实体类接收
Matplotlib常用设置
Understanding threads
Development trend and future direction of neural network Internet of things
y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
什么是马赛克?
Depth first search and breadth first search of graph traversal
Matplotlib common settings
小程序表单校验封装
SWT / anr problem - SWT causes low memory killer (LMK)
问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
[LeetCode] 最后一个单词的长度【58】
AirServer最新Win64位个人版投屏软件
Current situation and future development trend of Internet of things
Oracle中已定义者身份执行函数AUTHID DEFINER与Postgresql行为的异同
Matplotlib常用設置
Which securities company is better and which is safer to open a securities account
Switch to software testing, knowing these four points is enough!
Istio, ebpf and rsocket Broker: in depth study of service grid
Future trend and development of neural network Internet of things