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

Default limit for core dumps of balena engine (and thus all its containers) is too high #262

Open
jellyfish-bot opened this issue Jul 28, 2021 · 8 comments

Comments

@jellyfish-bot
Copy link

[hades32] Several customers had full disks because of too many core dumps. There is no reason to allow more than a few MB. (the number is in 1K units)

root@86fa459:~# grep Limit /lib/systemd/system/balena.service 
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity # this

related: moby/moby#38814

@Hades32
Copy link
Contributor

Hades32 commented Jul 28, 2021

@robertgzr any reason not to change this limit?

@robertgzr
Copy link
Contributor

@Hades32 there's an issue on meta-balena that we should review the systemd service: balena-os/meta-balena#1910

although my plan was to bring the upstream service file (https://github.com/moby/moby/blob/master/contrib/init/systemd/docker.service) into balenaOS, which would make all these limits infinity

@Hades32
Copy link
Contributor

Hades32 commented Aug 12, 2021

@robertgzr but why? Shouldn't we explicitly set it to a low number and NOT to infinity?

@robertgzr
Copy link
Contributor

I can't think of anything against lowering them... maybe that the SV would also be affected, since they apply to all containers. cc @alexgg wdyt regaring ulimits on containers?

@Hades32
Copy link
Contributor

Hades32 commented Aug 12, 2021

@robbyt I realize it was confusing that I added the two other limits in the code snippet above. I was specifically talking about LimitCORE. I don't think we have regular use for core dumps...

@alexgg
Copy link
Contributor

alexgg commented Aug 13, 2021

@robertgzr I think this is something we could add to a developmentMode image and remove in a production image.

@jellyfish-bot
Copy link
Author

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

@Petersdavis
Copy link

I found that this is the issue causing our devices to brick themselves.

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

5 participants