-
Notifications
You must be signed in to change notification settings - Fork 391
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
Adjust systemd service configuration based on image-builder
#5644
base: main
Are you sure you want to change the base?
Conversation
Just out of curiosity, have you run into OOM killer issues without the OOM score adjustment? The main difference with the upstream reference you provided is that in upstream these settings only apply to the container runtime, whereas here this change applies to the k0s process itself and all its child processes, including api-server, etcd/kine, and others, not just containerd. |
I did not, but I do not have any kind of load in dev clusters that could actually create that memory load |
I've just adjusted LimitNOFILE value to proper infinity, solution to actually do this in they way you are mentioning was already there. For OOMScore, it makes sense only to put it on systemd unit and we only have one unit. |
@@ -38,6 +38,7 @@ KillMode=process | |||
LimitCORE=infinity | |||
TasksMax=infinity | |||
TimeoutStartSec=0 | |||
OOMScoreAdjust=-999 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a condition around this directive, so it only kicks in if k0s is running the worker components? We could add a comment line with the link to the upstream source, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are overengeneering this. If I run k0s as system service I would want it to be not OOMed in any case, not for dev cluster and definitely not for prod cluster.
Signed-off-by: s3rj1k <[email protected]>
Description
Syncs systemd service config with values that are used in vanilla
image-builder
images.Fixes # (issue)
Type of change
How Has This Been Tested?
Manual systemd service test of config validity.
Checklist