Skip to content

Commit

Permalink
systemd: increase nproc ulimit
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Sep 21, 2015
1 parent 7bb316f commit ea97761
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea97761

Please sign in to comment.