当前位置:网站首页>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
边栏推荐
- "35 years old, the boss of the company, with a monthly salary of 20000, give away takeout": the times abandoned you, not even saying goodbye
- Switch to software testing, knowing these four points is enough!
- [micro service sentinel] sentinelresourceaspect details
- The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
- 2022年R1快开门式压力容器操作考题及答案
- 上海炒股开户选择手机办理安全吗?
- y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
- 建模和影视后期有什么关联?
- Create Ca and issue certificate through go language
- 力扣今日题-241. 为运算表达式设计优先级
猜你喜欢

物联网应用技术专业是属于什么类

Win 10 mstsc connect RemoteApp

CADD课程学习(3)-- 靶点药物相互作用

Zero foundation tutorial of Internet of things development

Redis 主从同步

神经网络物联网的发展趋势和未来方向

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

问题随记 —— file /usr/share/mysql/charsets/README from install of MySQL-server-5.1.73-1.glibc23.x86_64 c

Practical application and extension of plain framework

Paramètres communs de matplotlib
随机推荐
Who do you want to know when opening a stock account? Is it safe to open an account online?
Experience of practical learning of Silicon Valley products
想请教股票开户要认识谁?在线开户是安全么?
建模和影视后期有什么关联?
2021 RoboCom 世界机器人开发者大赛-高职组复赛
mt管理器测试滑雪大冒险
Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c
Redis 主从同步
Development trend and future direction of neural network Internet of things
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
win 10 mstsc连接 RemoteApp
Matplotlib常用图表
神经网络物联网的发展趋势和未来方向
y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
VIM color the catalogue
“35岁,公司老总,月薪2万送外卖“:时代抛弃你,连声再见都没有
Redis数据类型和应用场景
Daily three questions 6.29
Redis AOF日志
Openresty load balancing
