Commit 56185255 authored by godog's avatar godog

mtail: cap maximum memory

Swap is taken into account too in cgroups v1, disable it.
parent 78da26cd
Pipeline #3446 passed with stage
in 4 minutes and 53 seconds
......@@ -9,5 +9,9 @@ ExecStart=/usr/bin/mtail -progs /etc/mtail -logtostderr -port 3903 -logfds 3
# Limit memory leaks
ExecStartPost=+/bin/sh -c "echo 0 > /sys/fs/cgroup/memory/system.slice/%n/memory.swappiness"
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