-
Notifications
You must be signed in to change notification settings - Fork 649
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
Change replay percentage to total block size processed #1289
Comments
i don't think block % to total will allow you to estimate time. count or % of operations will do better. |
We don't have the number of total operations before replay. For this issue I mean we can use |
Is that possible to add "Estimate Completion Time" beside the Percentage? If can, then node admin no need to estimate completion time manually. |
I believe using the file size of the block log is an inaccurate measure of the total block size to apply. The reason is that the block log is only ever appended to. For example, when switching between forks, the blocks that are re-applied will be appended to the block log again. Similarly, the last 50 blocks of a replay are appended again. I believe the error is small for a typical node, but can be significant for a node that is restarted often. |
This doesn't sound ideal.
I guess it won't be too significant, since we don't reapply too old blocks anyway. IMHO, even it's not accurate, it's still better for estimation than block counts. |
Assigned @cogutvalera and awaiting his estimate for @bitshares/core-dev review. Thanks |
@ryanRfox my estimation for this issue is approximately 2 hours |
PR is ready #1335 Thanks ! |
Change replay percentage to total block size processed #1289
Resolved in #1335 |
I understand this is a closed Issue, so perhaps I need to open a separate one. I feel the output could be improved. Currently is looks like this:
Is it trivial to make it look something like:
Round to two decimal places and convert to K, M, G notation. |
I more like accurate numbers, at least for blocks ;) I agree that it's better if the decimal places of percentages are fewer. |
User Story
As a node admin, during replaying, I want to know percentage of total size of blocks that have been processed, rather than count of blocks, so that I can estimate more accurately when it will complete.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: