-
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
Migration optimization #10048
Comments
I went back and listen to our discussion to flesh out the proposed optimizations above and I think there is really only one concrete suggestion.
These two points kind of boil down to the same thing as I was able to derive from the video notes. We basically want to cache the intermediate statetree root after the migration completes such that on future calls to Right now we could fairly easily store the migrated stateroot root on the migration structure directly. However, I think we should also think about persisting this value in the chain store as well to avoid having to redo the migration work after a restart occurs. Lines 53 to 57 in 64059ca
This just sounds like opting out of the premigration (no point running the premigration without a cache). I thought this used to be a feature already but I guess has since been removed (though I can't even find when it existed). I believe there was an env Additionally, to make future improvements to migrations easier there are a few extra things I think we should be doing
Additionally, an env has been added (#9784) |
@travisperson Thanks a lot for this detailed synthesis, and for the summary in standup today. Based on feedback we received from the various users of the nv17 migration, I think a list of changes to make in order of impact might look something like this:
|
Checklist
Ideas
.Lotus component
Improvement Suggestion
during shark upgrade, full nodes / nodes has more chainstate with less ram on machine had trouble with migration.
there was a couple optimization being proposed by pl netops team
ask:
🤔 about an optimization that works best and implement it.
The text was updated successfully, but these errors were encountered: