Commit 1681bd2e authored by godog's avatar godog

mtail: cap memory to 800M

Swap is taken into account too in cgroups v1, disable it.
parent 78da26cd
Pipeline #3445 failed with stage
in 8 seconds
......@@ -9,5 +9,9 @@ ExecStart=/usr/bin/mtail -progs /etc/mtail -logtostderr -port 3903 -logfds 3
Restart=on-failure
User=mtail
# Limit memory leaks
MemoryMax=800M
ExecStartPost=+/bin/sh -c "echo 0 > /sys/fs/cgroup/memory/system.slice/%n/memory.swappiness"
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment