: 预写式日志
WAL
(Write-ahead logging) 先写日志 后落磁盘
: 内存
fsimage
= 磁盘
fsimage
+多个
editLog
: 只有主
NameNode
提供读写服务
1.流程图
流程梳理
editlog写机制
(双缓冲方案+分布式锁
) (空间换时间)