From 79f6415e9d45b7039701bab4414a1657c2427527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 6 Jan 2015 14:23:23 +0100 Subject: [PATCH] Bump up max open file for big cluster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Big cluster will easily reach the default limit so we need to increase it and make it configurable. Signed-off-by: Sébastien Han --- roles/ceph-common/defaults/main.yml | 1 + roles/ceph-common/templates/ceph.conf.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index c04701f77..9f72b44d2 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -53,6 +53,7 @@ cephx: true cephx_require_signatures: true # Kernel RBD does NOT support signatures! cephx_cluster_require_signatures: true cephx_service_require_signatures: false +max_open_files: 131072 disable_in_memory_logs: true ## Monitor options diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index 75132fe4d..6f5097b7a 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -15,6 +15,7 @@ auth supported = none {% endif %} fsid = {{ fsid }} + max open files = {{ max_open_files }} osd pool default pg num = {{ pool_default_pg_num }} osd pool default pgp num = {{ pool_default_pgp_num }} osd pool default size = {{ pool_default_size }}