Commit 7e732d9e authored by godog's avatar godog

Merge branch 'mtail_memory' into 'master'

mtail: cap memory

See merge request !35
parents 78da26cd 56185255
Pipeline #3460 failed with stage
in 180 minutes and 3 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=1G
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