知识卡片
日志与检查点恢复
可持久内存库用顺序日志跨越内存掉电风险,操作满足日志持久要求后即可应答。系统异步应用一组日志记录到磁盘副本,得到某个时间点的检查点。恢复从该检查点还原,再重放之后的日志。稳定副本已经囊括的那段日志可以回收,检查点推进得越及时,崩溃后需要重放的工作通常越少。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 1. Introduction and Overview Memory- Versus Disk-Based DBMS · 查看原书依据
Log records are usually applied to backup in batches. After the batch of log records is processed, backup holds a database snapshot for a specific point in time, and log contents up to this point can be discarded.
参考来源
- 位置:《Database Internals》Chapter 1. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch01.html#idm46104533894872,段 47)
- 结论依据:原文按日志写入、异步批量备份和截断历史日志说明内存库恢复方式。
- 原始内容:Log records are usually applied to backup in batches. After the batch of log records is processed, backup holds a database snapshot for a specific point in time, and log contents up to this point can be discarded.