-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata datastore log #5755
Metadata datastore log #5755
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice...I assume it doesn't slow anything down, right?
It doesn't have measurable impact, the metadata datastore isn't written all that much |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok, but is there a replay procedure to restore from the log?
Yep, normal backup restore works with those files (only manual for now) |
This makes us write 'continuous' backups to
/.lotus[miner]/kvlog/metadata
, which means that when the metadata leveldb gets corrupted, it's still very easy to recover the latest state