[Pkg-ceph-commits] [ceph] 02/02: d/p/tasksmax-infinity.patch: Drop systemd limitation of number of processes and threads to long running ceph processes; the default of 512 tasks is way to low for even a modest Ceph cluster (LP: #1564917).
James Downing Page
jamespage at moszumanska.debian.org
Tue Apr 5 16:39:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch ubuntu-xenial
in repository ceph.
commit bbdab3c3e009ffbfc643229e6fba60049d57654e
Author: James Page <james.page at ubuntu.com>
Date: Tue Apr 5 17:37:28 2016 +0100
d/p/tasksmax-infinity.patch: Drop systemd limitation of number of processes and threads to long running ceph processes; the default of 512 tasks is way to low for even a modest Ceph cluster (LP: #1564917).
---
debian/changelog | 4 ++
debian/lib-systemd/system/ceph-mon.service | 1 +
debian/patches/series | 1 +
debian/patches/tasksmax-infinity.patch | 81 ++++++++++++++++++++++++++++++
4 files changed, 87 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 485fb8e..36bd919 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,10 @@ ceph (10.1.0-0ubuntu1) UNRELEASED; urgency=medium
* d/p/drop-user-group-osd-prestart.patch: Drop --setuser/--setgroup
arguments from call to ceph-osd-prestart.sh; they are not supported
and generate spurious non-fatal warning messages (LP: #1557461).
+ * d/p/tasksmax-infinity.patch: Drop systemd limitation of number of
+ processes and threads to long running ceph processes; the default
+ of 512 tasks is way to low for even a modest Ceph cluster
+ (LP: #1564917).
-- James Page <james.page at ubuntu.com> Wed, 30 Mar 2016 09:12:17 +0100
diff --git a/debian/lib-systemd/system/ceph-mon.service b/debian/lib-systemd/system/ceph-mon.service
index 02f5a35..d89c74a 100644
--- a/debian/lib-systemd/system/ceph-mon.service
+++ b/debian/lib-systemd/system/ceph-mon.service
@@ -16,6 +16,7 @@ ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %H --setuser ceph --set
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=30
+TasksMax=infinity
[Install]
WantedBy=multi-user.target
diff --git a/debian/patches/series b/debian/patches/series
index 6dd8723..53f2f5b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -19,3 +19,4 @@ skip-setup.py-makefiles.patch
disable-openssl-linking.patch
32bit-compat.patch
drop-user-group-osd-prestart.patch
+tasksmax-infinity.patch
diff --git a/debian/patches/tasksmax-infinity.patch b/debian/patches/tasksmax-infinity.patch
new file mode 100644
index 0000000..4008e5b
--- /dev/null
+++ b/debian/patches/tasksmax-infinity.patch
@@ -0,0 +1,81 @@
+From 05cafcf19fb80dd2a76fdbbe5329bae53aa0def4 Mon Sep 17 00:00:00 2001
+From: James Page <james.page at ubuntu.com>
+Date: Tue, 5 Apr 2016 17:32:59 +0100
+Subject: [PATCH] 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 <james.page at ubuntu.com>
+---
+ systemd/ceph-mds at .service | 1 +
+ systemd/ceph-mon at .service | 1 +
+ systemd/ceph-osd at .service | 1 +
+ systemd/ceph-radosgw at .service | 1 +
+ systemd/ceph-rbd-mirror at .service | 1 +
+ 5 files changed, 5 insertions(+)
+
+diff --git a/systemd/ceph-mds at .service b/systemd/ceph-mds at .service
+index e122580..f13cef4 100644
+--- a/systemd/ceph-mds at .service
++++ b/systemd/ceph-mds at .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 at .service b/systemd/ceph-mon at .service
+index a8d427b..b9501d6 100644
+--- a/systemd/ceph-mon at .service
++++ b/systemd/ceph-mon at .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 at .service b/systemd/ceph-osd at .service
+index 0d73afb..1778db7 100644
+--- a/systemd/ceph-osd at .service
++++ b/systemd/ceph-osd at .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 at .service b/systemd/ceph-radosgw at .service
+index 66d9eb8..cfa5788 100644
+--- a/systemd/ceph-radosgw at .service
++++ b/systemd/ceph-radosgw at .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 at .service b/systemd/ceph-rbd-mirror at .service
+index 4c2e2f0..d38aec5 100644
+--- a/systemd/ceph-rbd-mirror at .service
++++ b/systemd/ceph-rbd-mirror at .service
+@@ -17,6 +17,7 @@ PrivateTmp=true
+ Restart=on-failure
+ StartLimitInterval=30min
+ StartLimitBurst=3
++TasksMax=infinity
+
+ [Install]
+ WantedBy=ceph-rbd-mirror.target
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list