-
Notifications
You must be signed in to change notification settings - Fork 449
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
#7748 first changes #7797
base: master
Are you sure you want to change the base?
#7748 first changes #7797
Conversation
@ssonthal a few things to improve would be:
(1) is a bit straight forward, find the location of the logic that logs that info within the code and then figure out how much of it to remove. to help with (2) -- if you look at the logs after a considerable amount of time syncing you'll notice there's a table that built for showing the sync stats. You can take a look at the code that built that and try adapting it. |
Hey @obasekiosa, I couldn't find any table you mentioned in point (2). how long do I need to keep the server running to see the sync stats? |
@obasekiosa Regarding point 1, i can only see these logs related to additionalRpcUrls -> They don't seem like a problem because they are logging for some unlikely cases, it seems. What do you think? |
oh no not these logs so on start of the client you'd see a log that tells you all the additional rpc urls that are active. |
it takes a while after some blocks have been synced. |
I may be wrong but it seems you might be finding it hard to find those logs. This an example of something similar to what they look like. Nov 21 04:33:12 eth nethermind[515741]: 21 Nov 04:33:12 | ***** JSON RPC report *****
Nov 21 04:33:12 eth nethermind[515741]: -----------------------------------------------------------------------------------------------------------------------------------------------
Nov 21 04:33:12 eth nethermind[515741]: method | successes | avg (ms) | max (ms) | errors | avg (ms) | max (ms) | avg size B | total (kB) |
Nov 21 04:33:12 eth nethermind[515741]: -----------------------------------------------------------------------------------------------------------------------------------------------
Nov 21 04:33:12 eth nethermind[515741]: engine_exchangeCapabilities | 1 | 5.754 | 5.754 | 0 | 0.000 | 0.000 | 414 | 0.40 |
Nov 21 04:33:12 eth nethermind[515741]: engine_forkchoiceUpdatedV3 | 27 | 3.282 | 20.278 | 0 | 0.000 | 0.000 | 197 | 5.19 |
Nov 21 04:33:12 eth nethermind[515741]: engine_getClientVersionV1 | 1 | 16.563 | 16.563 | 0 | 0.000 | 0.000 | 122 | 0.12 |
Nov 21 04:33:12 eth nethermind[515741]: engine_getPayloadBodiesByRangeV1 | 11 | 47.851 | 80.270 | 0 | 0.000 | 0.000 | 6580647 | 70690.54 |
Nov 21 04:33:12 eth nethermind[515741]: engine_newPayloadV3 | 26 | 73.069 | 248.753 | 0 | 0.000 | 0.000 | 162 | 4.11 |
Nov 21 04:33:12 eth nethermind[515741]: eth_chainId | 3 | 1.718 | 4.174 | 0 | 0.000 | 0.000 | 39 | 0.11 |
Nov 21 04:33:12 eth nethermind[515741]: eth_getBlockByNumber | 898 | 1.856 | 10.137 | 0 | 0.000 | 0.000 | 15681 | 13751.88 |
Nov 21 04:33:12 eth nethermind[515741]: eth_getLogs | 2 | 162.104 | 309.276 | 0 | 0.000 | 0.000 | 422005 | 824.23 |
Nov 21 04:33:12 eth nethermind[515741]: eth_syncing | 17 | 1.387 | 20.526 | 0 | 0.000 | 0.000 | 39 | 0.65 |
Nov 21 04:33:12 eth nethermind[515741]: -----------------------------------------------------------------------------------------------------------------------------------------------
Nov 21 04:33:12 eth nethermind[515741]: TOTAL | 986 | 4.621 | 309.276 | 0 | 0.000 | 0.000 | 88564 | 85277.24 |
Nov 21 04:33:12 eth nethermind[515741]: -----------------------------------------------------------------------------------------------------------------------------------------------
Nov 21 04:33:12 eth nethermind[515741]: |
hey @obasekiosa , i have removed the '+'s from the edges. and the made the pipe separators red to match the prior implementation. |
Questions:
|
Note: did you see the code that generates the reference table i sent? |
Yes, i checked the reference. It's also creating the table manually with same logic. So i thought I can go ahead with mine. |
Fixes #7748
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Optional. Remove if not applicable.
Documentation
Requires documentation update
If yes, link the PR to the docs update or the issue with the details labeled
docs
. Remove if not applicable.Requires explanation in Release Notes
If yes, fill in the details here. Remove if not applicable.
Remarks
Optional. Remove if not applicable.