Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
float
Commits
7e732d9e
Commit
7e732d9e
authored
Jun 15, 2019
by
godog
Browse files
Options
Browse Files
Download
Plain Diff
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
roles/base/files/mtail.service
roles/base/files/mtail.service
+4
-0
No files found.
roles/base/files/mtail.service
View file @
7e732d9e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment