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

docker: set oom score adjust to -500 #3555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thaJeztah
Copy link
Contributor

relates to moby/moby#41528

Currently, dockerd sets a "-500" oom-score-adjust for itself by default.

We're removing this default, and instead:

  • for dockerd running as systemd unit, set the oom-score through systemd
  • when manually running dockerd, require users to explicitly set a score

This patch is in preparation of those changes.

Currently, dockerd sets a "-500" oom-score-adjust for itself by default.

We're removing this default, and instead:

- for dockerd running as systemd unit, set the oom-score through systemd
- when manually running dockerd, require users to explicitly set a score

This patch is in preparation of those changes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Contributor Author

@justincormack ptal

@justincormack
Copy link
Member

Not sure this is the right way to do it, linuxkit can set the oom score directly in the config which seems better

@thaJeztah
Copy link
Contributor Author

Oh, yes, I'd prefer that as well; this was mostly to keep the old behavior, and I'm not really familiar with LinuxKit; can you point me to an example? Happy to update then

@rn
Copy link
Member

rn commented Apr 5, 2021

examples/docker.yml and others contain an example on how to add a custom daemon.json file. Is this what you are looking for?

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

Successfully merging this pull request may close these issues.

None yet

3 participants