当前位置:网站首页>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
边栏推荐
- notBlank 和 notEmpty
- Win 10 mstsc connect RemoteApp
- The online beggar function of Japanese shopping websites
- 字典、哈希表、数组的概念
- Microservice stability management
- 物联网技术应用属于什么专业分类
- Some thoughts on game performance optimization
- Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
- [must] bm41 output the right view of the binary tree [medium +]
- The digital summit is popular, and city chain technology has triggered a new round of business transformation
猜你喜欢

Zhao Fuquan: to ensure supply in the short term, we should build a safe, efficient and resilient supply chain in the long term

Redis 主从同步

Yunxin small class | common cognitive misunderstandings in IM and audio and video

有没有一段代码,让你为人类的智慧所折服

Paramètres communs de matplotlib

mysql binlog的清理

Wechat personal small store one click opening assistant applet development

The digital summit is popular, and city chain technology has triggered a new round of business transformation

What professional classification does the application of Internet of things technology belong to

win 10 mstsc连接 RemoteApp
随机推荐
【必会】BM41 输出二叉树的右视图【中等+】
Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
What professional classification does the application of Internet of things technology belong to
Matplotlib常用设置
Future trend and development of neural network Internet of things
Postgresql源码(57)HOT更新为什么性能差距那么大?
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
Who do you want to know when opening a stock account? Is it safe to open an account online?
Redis 主从同步
AirServer最新Win64位个人版投屏软件
2022年危险化学品经营单位安全管理人员考试题及在线模拟考试
ShanDong Multi-University Training #3
【小程序】通过scroll-view组件实现左右【滑动】列表
2022 R1 fast opening pressure vessel operation test questions and answers
What category does the Internet of things application technology major belong to
CKS CKA ckad change terminal to remote desktop
Create Ca and issue certificate through go language
CKS CKA ckad change terminal to remote desktop
Postgresql源码(58)元组拼接heap_form_tuple剖析
玻璃马赛克
