From: Sage Weil Date: Thu, 17 Sep 2015 22:28:38 +0000 (-0400) Subject: systemd: increase nproc ulimit X-Git-Tag: v9.1.0~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea977611c4707c789926d497c43e70641e184238;p=ceph.git 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 --- diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service index c66e6417468..f86f4ee4d97 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 ba6087daf2b..a0eeff8300a 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 1f7ccc4c10f..5a9314ec0a5 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 6558890794a..fccd0116770 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