-
Notifications
You must be signed in to change notification settings - Fork 931
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
ListValidatorBalances RPC is very slow for historic epochs (new state mgmt) #5851
Comments
@ppratscher 2 mins is what we see as well. Unfortunately that's how long it takes to replay back all the blocks and generate the missing state. We'll need to optimize it |
hm, it varies between 2-5 minutes which makes it nor really usable for a block explorer. we now wiped the database and re-synced from scratch. after that the call responded withing a few seconds. |
I see, I observed a bug which cause archived state to be incorrectly saved at every period. I will fix that today. Will keep you updated with this |
Just tried a full resync again on latest master with |
Did a new resync today with the latest master with
|
We did now a full test run of all rpc apis we use. The results are as follows:
From what we can see |
@ppratscher expected, the default slots per archived point is 2048 slots which is not suited for beacon block explorer use cases. I recommend setting |
@terencechain can you comment on why the archived point is 2048? |
@prestonvanloon Although there's still optimizations and improvements. We definitely do not recommend 2048 for serving explorers and for archival usages. Even for lighthouse, it takes 6s to retrieve a state: Block explorers is recommended to use shorter intervals like 32/64/128.. etc |
OK thanks for the insight, maybe we can capture this in the docs page for recommended state checkpoint intervals? What do you think? |
I agree with this. Will open an issue to track this |
Closing this and will track documentation: |
Version: latest master
Using the --enable-new-state-mgmt flag the node does not respond to the ListValidatorBalances RPC call for historic epochs.
For example querying the validator balances of all validators of epoch 5877 takes nearly 2 minutes on our production system:
The text was updated successfully, but these errors were encountered: