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:
Christophe de Dinechin 2020-11-13 11:10:19 +01:00
parent 06b9294c7d
commit 53b5d063e9

View File

@ -20,3 +20,5 @@ LimitNOFILE=infinity
# the runtime handles shutting down the VM. # the runtime handles shutting down the VM.
ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff
FailureAction=poweroff FailureAction=poweroff
# Discourage OOM-killer from touching the agent
OOMScoreAdjust=-997