From ea977611c4707c789926d497c43e70641e184238 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 17 Sep 2015 18:28:38 -0400 Subject: [PATCH] systemd: increase nproc ulimit We were observed to be hitting the limit on centos7 (triggering pthread_create failures) on a ~2000 OSD cluster. Increasing this resolves it! Reported-by: Dan van der Ster Signed-off-by: Sage Weil --- systemd/ceph-mds@.service | 1 + systemd/ceph-mon@.service | 1 + systemd/ceph-osd@.service | 1 + systemd/ceph-radosgw@.service | 1 + 4 files changed, 4 insertions(+) diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service index c66e641746876..f86f4ee4d97bc 100644 --- a/systemd/ceph-mds@.service +++ b/systemd/ceph-mds@.service @@ -6,6 +6,7 @@ PartOf=ceph.target [Service] LimitNOFILE=1048576 +LimitNPROC=1048576 EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph diff --git a/systemd/ceph-mon@.service b/systemd/ceph-mon@.service index ba6087daf2b9e..a0eeff8300add 100644 --- a/systemd/ceph-mon@.service +++ b/systemd/ceph-mon@.service @@ -12,6 +12,7 @@ PartOf=ceph.target [Service] LimitNOFILE=1048576 +LimitNPROC=1048576 EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service index 1f7ccc4c10f1c..5a9314ec0a51e 100644 --- a/systemd/ceph-osd@.service +++ b/systemd/ceph-osd@.service @@ -6,6 +6,7 @@ PartOf=ceph.target [Service] LimitNOFILE=1048576 +LimitNPROC=1048576 EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph diff --git a/systemd/ceph-radosgw@.service b/systemd/ceph-radosgw@.service index 6558890794abf..fccd0116770da 100644 --- a/systemd/ceph-radosgw@.service +++ b/systemd/ceph-radosgw@.service @@ -6,6 +6,7 @@ PartOf=ceph.target [Service] LimitNOFILE=1048576 +LimitNPROC=1048576 EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/radosgw -f --cluster ${CLUSTER} --name client.%i --setuser ceph --setgroup ceph -- 2.39.5