-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Restarting Lodestar takes to long time #7378
Comments
The first issue I see is that the node is not gracefully shut down, force exit happens right after first shutdown signal is sent
Shutting down the node will ensure it properly archives the last finalized state which should avoid having to sync 261 slots after the restart. The second reason seems to be that had to remove 361 checkpoints, likely related to
Usually it takes only 2-3 mins for the node to be back at head after a restart and have a good peer count. |
Thanks for the hints, I should have noticed the
But as for the forced process exit I've been trying to modify the service file but I cannot get it to exit gracefully. This is the current service file I have tested with now
And if I with this file run
Do you have any ideas why it behaves like this? |
Just looking at a service file we have, all that is set there is |
and just noticed the nodes we run via systemd are also force exited... |
Ok I found the issue on our end and I think it's a similar problem for you, the process is not properly executed as it's from a bash script so systemd thinks it's closed but it isn't ExecStart=/home/lodestar/lodestar beacon $BEACON_CLI_ARGS try change this to ExecStart=node --max-old-space-size=8192 /home/lodestar/packages/cli/bin/lodestar.js beacon $BEACON_CLI_ARGS |
**Motivation** Users might use the lodestar script inside docker or with a process manager like systemd (#7378) and in those cases we need to make sure Lodestar runs as primary process and not the shell script as otherwise exit signals are not properly forwarded or in case of systemd it does not wait for Lodestar to shut down. **Description** Update lodestar script to properly forward exit signals by execution the main node process via `exec`. This shouldn't change anything in regard to how we use the script during development.
Describe the bug
After restarting the Lodestar client it takes around 35 minutes until it starts syncing again.
Expected behavior
I would expect a restart to take at max 1 minute or at least a lot less than 35 minutes.
Steps to reproduce
Lodestar is running as a systemd service using this file
Additional context
This has been the case for the last few versions I think.
Operating system
Linux
Lodestar version or commit hash
v1.24.0/ca315d4
The text was updated successfully, but these errors were encountered: