-
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
chore: update log progress on network migrations #12732
Conversation
@rvagg is there a way I can run this locally to test it out? |
Yes, you can run this locally! |
Raised a PR in go-state-types @ filecoin-project/go-state-types#329 |
@virajbhartiya ; what are the next steps? Is this blocked until filecoin-project/go-state-types#329 lands? |
@virajbhartiya this is looking good so far but a couple of tweaks now that I see it:
Here's what that looks like after hacking it up locally: @rjan90 what do you think of this output? Printing every 2 seconds by default, but this can be configured per-migration if we have a particularly long one that might get spammy (hopefully we never have long ones!). Any feedback? |
Also this needs a changelog entry. It might be nice to make SPs prepared because there's a lot of log grepping as upgrades happen. btw the 4 redundant-seeming "done" prints may not be redundant in some upgrades - almost all of the >3M jobs will be done together but we may have one or two special jobs that keep on going because they are doing something complicated (like the nv22 upgrade with all its state mangling), and there may be deferred migrations to be run too. |
Two seconds sounds fine for smaller state nodes. But can we have an environment variable that makes it tweakable as well? Historical archive operators might want to tweak this a lot higher, since they will face hour long migrations, even if it's a non heavy network migration. |
@virajbhartiya |
you can add in |
I'll add the env variable for log period and also go-state-types@master |
in my local checkout of this I rebased on
Default prints out every 2s as expected. Setting it to |
👍 looking good, couple of notes left |
2d271c7
to
ddf1cab
Compare
…pdate related error messages
… to period across functions and documentation
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.
👍 we got there! thanks for coordinating across repos for this
Closes #12259
Code changes:
chain/consensus/filcns/upgrades.go
:ProgressLogPeriod
from 5 minutes to 2 seconds in thePreUpgradeActorsV16
function.ProgressLogPeriod
from 10 seconds to 2 seconds in theUpgradeActorsV16
function.Log
method in themigrationLogger
to provide more detailed logging for migration jobs, including the percentage of jobs completed and the rate of completion.Documentation changes:
documentation/misc/Building_a_network_skeleton.md
:ProgressLogPeriod
from 5 minutes to 2 seconds in the migration configuration example.ProgressLogPeriod
from 10 seconds to 2 seconds in another migration configuration example.