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

review balena-engine systemd service #1910

Closed
robertgzr opened this issue Jun 2, 2020 · 6 comments
Closed

review balena-engine systemd service #1910

robertgzr opened this issue Jun 2, 2020 · 6 comments

Comments

@robertgzr
Copy link
Contributor

we currently diverge from the one provided by upstream here:
https://github.com/moby/moby/blob/master/contrib/init/systemd/docker.service

as per my previous commit here: see: fb2b63e

@robertgzr
Copy link
Contributor Author

regarding TimeoutStartSec

  1. there seems to be an issue where some low-spec devices can exceed this timeout, which triggers systemd to stop the unit, see https://www.flowdock.com/app/rulemotion/balenalabs/threads/chG_M67A0Va0Bl2cgLiZ4pdCelh

  2. upstream introduced this setting when they put their graphdriver migration code into the engine startup code. In the future we will also run similar migrations, see Aufs to overlay2 migration utility balena-engine#168. So disabling it seems like a good move.

@robertgzr
Copy link
Contributor Author

robertgzr commented Jun 4, 2020

Are there any counter arguments to having live-restore enabled on device?
https://docs.docker.com/config/containers/live-restore/

@jellyfish-bot
Copy link

[roman-mazur] This issue has attached support thread https://jel.ly.fish/9cfdf4d4-c626-4ba1-aa46-35e357fdbb08

@roman-mazur
Copy link
Contributor

Just applied the TimeoutStartSec=0 change to mitigate an issue on a RPi Zero device that could not get the engine running in 90 seconds (the app is balenaSense, so it takes time to load 5 containers).

@jellyfish-bot
Copy link

[kb2ma] This issue has attached support thread https://jel.ly.fish/f50e9cf8-d51b-4000-b5ed-84f8cae452cc

@alexgg
Copy link
Contributor

alexgg commented Apr 29, 2022

This refactoring happened in 8227a61.

The TimeoutStartSec was disabled in c4ce541

@alexgg alexgg closed this as completed Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants