From: Sage Weil Date: Mon, 14 Sep 2015 14:54:53 +0000 (-0400) Subject: systemd: set nofile limit in unit files X-Git-Tag: v9.1.0~143^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8453a89cb237f21e35e7a10daddec592ac3af258;p=ceph.git systemd: set nofile limit in unit files Make it big so hopefully nobody has to change it. Signed-off-by: Sage Weil --- diff --git a/systemd/ceph-mds@.service b/systemd/ceph-mds@.service index 7e5a95e8c4eb..c66e64174687 100644 --- a/systemd/ceph-mds@.service +++ b/systemd/ceph-mds@.service @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target PartOf=ceph.target [Service] +LimitNOFILE=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 7ac9b8f2ec76..ba6087daf2b9 100644 --- a/systemd/ceph-mon@.service +++ b/systemd/ceph-mon@.service @@ -11,6 +11,7 @@ Wants=network-online.target local-fs.target ceph-create-keys@%i.service PartOf=ceph.target [Service] +LimitNOFILE=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.in b/systemd/ceph-osd@.service.in index fac1932f58f2..1f7ccc4c10f1 100644 --- a/systemd/ceph-osd@.service.in +++ b/systemd/ceph-osd@.service.in @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target PartOf=ceph.target [Service] +LimitNOFILE=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 486cef889cb4..6558890794ab 100644 --- a/systemd/ceph-radosgw@.service +++ b/systemd/ceph-radosgw@.service @@ -5,6 +5,7 @@ Wants=network-online.target local-fs.target PartOf=ceph.target [Service] +LimitNOFILE=1048576 EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/radosgw -f --cluster ${CLUSTER} --name client.%i --setuser ceph --setgroup ceph