From: James Page Date: Tue, 5 Apr 2016 16:32:59 +0000 (+0100) Subject: Drop any systemd imposed process/thread limits X-Git-Tag: v10.1.2~47^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05cafcf19fb80dd2a76fdbbe5329bae53aa0def4;p=ceph.git Drop any systemd imposed process/thread limits If systemd has task accounting enabled, a default of 512 tasks will be applied to all systemd units. For ceph, this is way to low even for a modest cluster, so stop this restriction being applied and allow administrators to apply limits using sysctl. Signed-off-by: James Page --- diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service index e12258058c74..f13cef4428e7 100644 --- a/systemd/ceph-mds@.service +++ b/systemd/ceph-mds@.service @@ -15,6 +15,7 @@ PrivateDevices=yes ProtectHome=true ProtectSystem=full PrivateTmp=true +TasksMax=infinity [Install] WantedBy=ceph-mds.target diff --git a/systemd/ceph-mon@.service b/systemd/ceph-mon@.service index a8d427b5ab5e..b9501d630dcf 100644 --- a/systemd/ceph-mon@.service +++ b/systemd/ceph-mon@.service @@ -21,6 +21,7 @@ PrivateDevices=yes ProtectHome=true ProtectSystem=full PrivateTmp=true +TasksMax=infinity [Install] WantedBy=ceph-mon.target diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service index 0d73afbbbf22..1778db704e87 100644 --- a/systemd/ceph-osd@.service +++ b/systemd/ceph-osd@.service @@ -15,6 +15,7 @@ ExecReload=/bin/kill -HUP $MAINPID ProtectHome=true ProtectSystem=full PrivateTmp=true +TasksMax=infinity [Install] WantedBy=ceph-osd.target diff --git a/systemd/ceph-radosgw@.service b/systemd/ceph-radosgw@.service index 66d9eb85a2d9..cfa578847704 100644 --- a/systemd/ceph-radosgw@.service +++ b/systemd/ceph-radosgw@.service @@ -14,6 +14,7 @@ PrivateDevices=yes ProtectHome=true ProtectSystem=full PrivateTmp=true +TasksMax=infinity [Install] WantedBy=ceph-radosgw.target diff --git a/systemd/ceph-rbd-mirror@.service b/systemd/ceph-rbd-mirror@.service index 4c2e2f060beb..d38aec524e8d 100644 --- a/systemd/ceph-rbd-mirror@.service +++ b/systemd/ceph-rbd-mirror@.service @@ -17,6 +17,7 @@ PrivateTmp=true Restart=on-failure StartLimitInterval=30min StartLimitBurst=3 +TasksMax=infinity [Install] WantedBy=ceph-rbd-mirror.target