Block production pauses right after segment creation #3321
Labels
bug
Something isn't working
help wanted
Extra attention is needed
node
Node (service library/node app)
performance
Related to performance measurement or improvement
upstream
Blocked by upstream
Here is what happens every time there is a new segment on the mainnet:
Warnings are not important and not happen every time, but pauses in block production for a few minutes do, which is a bug.
The latest observation is that there is a 100% CPU usage during this time (meaning a single core), which likely indicates the problem not in the archiving itself, but likely in the block finalization code of Substrate (that was optimized substantially, but still not exactly ideal).
Further investigation is needed and likely upstream work in Substrate to either optimize its finalization code even further (parallelizing would bring immediate benefits if possible), while #2114 will be the proper solution because it'll allow us to stop finalizing tens of thousands of blocks at once.
The text was updated successfully, but these errors were encountered: