Disable oom killer completely
All checks were successful
Unittests / deploy-dev (push) Successful in 57s
Unittests / unittests (push) Successful in 1m1s
Release / deploy-production (release) Successful in 1m6s

This commit is contained in:
Adam Štrauch 2025-06-14 12:38:08 +02:00
parent ec1f0d3f3a
commit c7ed0f148f
Signed by: cx
GPG key ID: 7262DAFE292BCE20

View file

@ -338,10 +338,13 @@ func (d *Driver) Create(name string, image string, volumePath string, HTTPPort i
}
}
OOMKillDisable := false
if memory < 1500 {
OOMKillDisable = true
}
// OOMKillDisable := false
// if memory < 1500 {
// OOMKillDisable = true
// }
// We disable OOM killer because it keeps containers in resource heavy loop
// This is from some discussion: If OOM-killer is disabled, tasks under cgroup will hang/sleep in memory cgroup's OOM-waitqueue when they request accountable memory
OOMKillDisable := true
envList := []string{}
for key, value := range env {