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

Beacon HTTP API slow response times #3694

Closed
dapplion opened this issue Feb 4, 2022 · 3 comments
Closed

Beacon HTTP API slow response times #3694

dapplion opened this issue Feb 4, 2022 · 3 comments
Labels
prio-medium Resolve this some time soon (tm). scope-performance Performance issue and ideas to improve performance.

Comments

@dapplion
Copy link
Contributor

dapplion commented Feb 4, 2022

Describe the bug

The Beacon HTTP API takes always > 2 sec to complete any request even for endpoint that don't require any processing.

We must investigate what is causing this delay:

  • Node to busy?
  • Some logic bug?
  • Fastify?
  • NodeJS itself?

Expected behavior

Respond to API requests in < 100ms times

Steps to Reproduce

Run lodestar beacon

time curl localhost:9596/eth/v1/beacon/headers/head
@dapplion dapplion added prio-high Resolve issues as soon as possible. scope-performance Performance issue and ideas to improve performance. labels Feb 4, 2022
@twoeths
Copy link
Contributor

twoeths commented Feb 10, 2022

the state transition takes 1s-2s depending on the node so at least it'll take that amount of time for the node to finish the api when that happens

@dapplion
Copy link
Contributor Author

@dapplion dapplion added prio-medium Resolve this some time soon (tm). and removed prio-high Resolve issues as soon as possible. labels Jun 29, 2022
@dapplion
Copy link
Contributor Author

Non actionable issue directly. We are working on reducing main thread load an watching REST times closely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-medium Resolve this some time soon (tm). scope-performance Performance issue and ideas to improve performance.
Projects
Status: Done
Development

No branches or pull requests

2 participants