当前位置:网站首页>redis persistence
redis persistence
2022-08-05 05:25:00 【value growth】
rdb and aof persistence strategies can coexist
Both persistence strategies are recommended
redis preferentially loads the aof file to restore data
1. rdb (redis database)
The data in memory during the time period is written to disk.Snapshot storage.
Fork a child process for persistence.Write/read temporary files.The main process does not perform IO operations.
Suitable for large-scale data recovery, the integrity of data recovery is poor.
2. aof (append only file)
Log each write operation, only append files.The command is executed once according to the log file during recovery.
redis rewrites the aof file, 64m, not too big.
aof saves more complete data.Worst loss of 2s data.
Frequent IO, rewrite.
3. Master-Slave Replicate
Solve the problem of frequent IO and high overhead of aof.
边栏推荐
猜你喜欢

第四讲 反向传播随笔

server disk array

Flutter real machine running and simulator running
![[cesium] 3D Tileset model is loaded and associated with the model tree](/img/03/50b7394f33118c9ca1fbf31b737b1a.png)
[cesium] 3D Tileset model is loaded and associated with the model tree

The underlying mechanism of the class

Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
![[Go through 7] Notes from the first section of the fully connected neural network video](/img/e2/1107171b52fe9dcbf454f7edcdff77.png)
[Go through 7] Notes from the first section of the fully connected neural network video

Error creating bean with name 'configDataContextRefresher' defined in class path resource

多线程查询结果,添加List集合

Geek卸载工具
随机推荐
SQL(一) —— 增删改查
Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)
day7-列表作业(1)
Redis - 13. Development Specifications
2023 International Conference on Information and Communication Engineering (JCICE 2023)
1.3 mysql batch insert data
Develop a highly fault-tolerant distributed system
day12函数进阶作业
Lecture 5 Using pytorch to implement linear regression
The mall background management system based on Web design and implementation
重新审视分布式系统:永远不会有完美的一致性方案……
1.3 mysql批量插入数据
How can Flutter parent and child components receive click events
【过一下 17】pytorch 改写 keras
Understanding and use of C# on set() and get() methods
【技能】长期更新
【过一下8】全连接神经网络 视频 笔记
[cesium] element highlighting
【记一下1】2022年6月29日 哥和弟 双重痛苦
ES6 生成器