-
Notifications
You must be signed in to change notification settings - Fork 786
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
Heavy HTTP requests halt the client #3536
Comments
I wouldn't call 3req/sec heavy. Have you tried 100 or 1000/sec? Are you making the requests from a another computer on the same network or are you making the requests from the same computer? I'd like to duplicate the issue. If feasible, please create a repo with the code that reproduces the issue. |
When you get a Other things to try:
Longer-term remedies (Lighthouse code changes):
Thank you for looking into this @winksaville. If you manage to reproduce the issue maybe you could take #2381 on as a project? I think you'd have to resolve the merge conflicts and test the performance |
Thank you for your reply. The query problem is quite weird, to be honest. I can query And to answer your question: I'm running a lighthouse node on an AWS EC2 instance and making requests from another EC2 instance so it's on 2 different machines. I will spin up an example repo/script in the following days. Thanks |
@JustinZal the reason queries far from the head take so long (like multiple minutes) is because they involve replaying thousands of blocks in the default configuration, which is optimised for space efficiency. You can tweak the database to prioritise speed at the expense of using more space, see https://lighthouse-book.sigmaprime.io/advanced_database.html |
Thank you very much! This section is extremely useful. For some reason haven't come across it before. |
Awesome! If you're running an explorer or similar it's a good idea to run with a lower I'm curious whether you've had a chance to try any of my suggestions from here: #3536 (comment) ? I think they should help quite a bit, particularly the memory arena one. |
I'm closing this one since it seems inactive and it doesn't have anything actionable that isn't already tracked. Thanks everyone! |
Description
If I do consecutive HTTP querying of the node it either halts or starts restarting multiple times in a row.
Endpoints being called:
eth/v1/beacon/states/finalized/validators/BLS_KEY
eth/v1/beacon/states/finalized/finality_checkpoints
Approximate request rate is 3 requests / second.
I experimentally discovered that the reason behind the halt was the high usage of endpoints 1 and 2. once I disable the
--http
flag and restart the client the sync starts to catch on.Version
v3.0.0
non-portablelinux
Present Behaviour
I can see in the logs that the SLOT distance keeps increasing
First set of logs:
Second set of logs:
Expected Behaviour
The sync distance should be decreasing or at least some sort of error should be thrown to indicate issues.
Steps to resolve
Suggestions:
The text was updated successfully, but these errors were encountered: