当前位置:网站首页>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
边栏推荐
- Three development trends of enterprise application from the perspective of the third technological revolution
- 想请教股票开户要认识谁?在线开户是安全么?
- flutter Unable to load asset: assets/images/888.png
- js——arguments的使用
- Create Ca and issue certificate through go language
- Is it safe to choose mobile phone for stock trading account opening in Shanghai?
- Distance measurement - Hamming distance
- [micro service sentinel] sentinel integrates openfeign
- Redis数据类型和应用场景
- Linux foundation - centos7 offline installation of MySQL
猜你喜欢

建模和影视后期有什么关联?

Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four

CADD course learning (3) -- target drug interaction

2022年R1快开门式压力容器操作考题及答案

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

物联网现状及未来发展趋势
![[must] bm41 output the right view of the binary tree [medium +]](/img/a5/00b2f0df5ab448665a2b062d145e52.png)
[must] bm41 output the right view of the binary tree [medium +]

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

Concepts of dictionary, hash table and array

Practical application and extension of plain framework
随机推荐
Matplotlib常用設置
SWT / anr problem - SWT causes low memory killer (LMK)
y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
Anomaly-Transformer (ICLR 2022 Spotlight)复现过程及问题
字典、哈希表、数组的概念
有没有一段代码,让你为人类的智慧所折服
Postgresql源码(58)元组拼接heap_form_tuple剖析
The digital summit is popular, and city chain technology has triggered a new round of business transformation
Practical application and extension of plain framework
2021 RoboCom 世界机器人开发者大赛-高职组初赛
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Microservice stability management
小程序表单校验封装
What are the common types of points mall games?
What is the mosaic tailgate?
【小程序】通过scroll-view组件实现左右【滑动】列表
RPA: Bank digitalization, business process automation "a small step", and loan review efficiency "a big step"
每日三题 6.30(2)
云信小课堂 | IM及音视频中常见的认知误区
上海炒股开户选择手机办理安全吗?
