You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2021/07/14 11:50:46 UTC
[mesos] branch master updated: Updated documentation for Systemd's
parameter `delegate`
This is an automated email from the ASF dual-hosted git repository.
qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new f244030 Updated documentation for Systemd's parameter `delegate`
f244030 is described below
commit f24403039395d408cc473f01955865388a59d3cb
Author: Andreas Peters <ap...@aventer.biz>
AuthorDate: Wed Jul 14 19:45:45 2021 +0800
Updated documentation for Systemd's parameter `delegate`
This closes #398
---
docs/mesos-containerizer.md | 11 +++++++++++
support/packaging/common/mesos-slave.service | 1 +
2 files changed, 12 insertions(+)
diff --git a/docs/mesos-containerizer.md b/docs/mesos-containerizer.md
index c632550..9a7b25d 100644
--- a/docs/mesos-containerizer.md
+++ b/docs/mesos-containerizer.md
@@ -66,3 +66,14 @@ Mesos supports the following built-in isolators.
- [volume/secret](secrets.md#file-based-secrets)
- [windows/cpu](isolators/windows.md#cpu-limits)
- [windows/mem](isolators/windows.md#memory-limits)
+
+## Systemd Integration
+
+To prevent systemd from manipulating cgroups managed by the agent,
+it's recommended to add 'Delegate' under 'Service' in the service
+unit file of Mesos agent, for example:
+
+```
+[Service]
+Delegate=true
+```
diff --git a/support/packaging/common/mesos-slave.service b/support/packaging/common/mesos-slave.service
index 99c2728..a3d9320 100644
--- a/support/packaging/common/mesos-slave.service
+++ b/support/packaging/common/mesos-slave.service
@@ -11,6 +11,7 @@ RestartSec=20
LimitNOFILE=16384
CPUAccounting=true
MemoryAccounting=true
+Delegate=true
[Install]
WantedBy=multi-user.target