From: Owen Synge Date: Tue, 21 Apr 2015 09:31:24 +0000 (+0200) Subject: Increase max files open limit for OSD daemon. X-Git-Tag: v0.94.3~37^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37d77d3680d2c8adda35eddf9625a331a45ece11;p=ceph.git Increase max files open limit for OSD daemon. Under heavy load the number of file descriptors opened by the OSD can go beyond the 64K file limit. This patch increases the default to 128K. Signed-off-by: Owen Synge (cherry picked from commit ebda4ba1c67172852587e47a8e6fb538809a1b1c) --- diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service index edb24ad4b1f9..c12b56c9fb97 100644 --- a/systemd/ceph-osd@.service +++ b/systemd/ceph-osd@.service @@ -9,6 +9,7 @@ EnvironmentFile=-/etc/sysconfig/ceph Environment=CLUSTER=ceph ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i +LimitNOFILE=131072 [Install] WantedBy=ceph.target