mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-23 21:28:10 +00:00
agent: Adjust OOM Score to avoid agent being killed.
Under stress, the agent can be OOM-killed, which exists the sandbox. One possible hard-to-diagnose manifestation is a virtiofsd crash. Fixes: #1111 Reported-by: Qian Cai <caiqian@redhat.com> Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
@@ -20,3 +20,5 @@ LimitNOFILE=infinity
|
||||
# the runtime handles shutting down the VM.
|
||||
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
|
||||
FailureAction=poweroff
|
||||
# Discourage OOM-killer from touching the agent
|
||||
OOMScoreAdjust=-997
|
||||
|
Reference in New Issue
Block a user