美文网首页
LFS对宕机一致性问题的解决

LFS对宕机一致性问题的解决

作者: 泓礼 | 来源:发表于2018-12-23 10:26 被阅读0次

1. consistency

checkpoint region flush 30s or longer, so after crash, the lfs should recovery cr to latest state,eg。read from all inode map, but it doesn't know the latest inode map location,so it need to scan all disk,this incur high overhead。

How does lfs solve this problem?

Lfs record more info,CR know the log end,and one segment can point to next。 so after reboot,it checks whether need to update CR。This tech is know as “roll forward” in db community。

相关文章

网友评论

      本文标题:LFS对宕机一致性问题的解决

      本文链接:https://www.haomeiwen.com/subject/akmgkqtx.html