File 0031-Increase-max-files-open-limit-for-O.patch of Package ceph.627

From: Owen Synge <osynge@suse.com>
Date: Tue, 21 Apr 2015 11:31:24 +0200
Subject: [PATCH] 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 <osynge@suse.com>
 (cherry picked from commit ebda4ba1c67172852587e47a8e6fb538809a1b1c)
---
 systemd/ceph-osd@.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service
index 6e27b91..09f51c5 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/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
+LimitNOFILE=131072
 
 [Install]
 WantedBy=ceph.target
openSUSE Build Service is sponsored by