Skip to content
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

Fix performance of StateCompute RPC on Archival nodes #12294

Open
aarshkshah1992 opened this issue Jul 24, 2024 · 2 comments
Open

Fix performance of StateCompute RPC on Archival nodes #12294

aarshkshah1992 opened this issue Jul 24, 2024 · 2 comments
Labels
Milestone

Comments

@aarshkshah1992
Copy link
Contributor

aarshkshah1992 commented Jul 24, 2024

StateCompute for an epoch near the head can take 1 minute to complete on an archival node. For epochs far in the past, it can 4-5 minutes. This is only for a single request and performance degrades further for multiple requests. This makes it extremely hard to build a Filecoin explorer(which needs archived state) as it can take months to index the entire chain.

We should get access to an archival node and profile the StateCompute RPC API to find performance hotspots and fix them.

(This was learned when talking with Zondax on 2024-07-24.)

@rjan90 rjan90 added this to the DX-Streamline milestone Jul 25, 2024
@dubuqingfeng
Copy link

Is there a solution for this?

@rvagg
Copy link
Member

rvagg commented Aug 8, 2024

Not yet, we're not entirely sure what the issue might be other than badger being really bad at large amounts of data and probably really bad at data that's not touched very much (historical).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🐱 Todo
Development

No branches or pull requests

4 participants