From e3275c1ca169c05e160064c90d36d9fb44f5c2b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 14 Mar 2018 23:46:23 +0100 Subject: [PATCH] osd: add fs.aio-max-nr tuning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The number of osds per nodes is limited by aio-max-nr, default is low, so we need to increase it. Full story: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2017-August/020408.html Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1553407 Signed-off-by: Sébastien Han --- roles/ceph-osd/tasks/main.yml | 4 +--- roles/ceph-osd/tasks/system_tuning.yml | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 2421a12c5..1bef0ceae 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -8,10 +8,8 @@ - name: include check_mandatory_vars.yml include: check_mandatory_vars.yml -- name: include misc/system_tuning.yml +- name: include system_tuning.yml include: system_tuning.yml - when: - - osd_group_name in group_names # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent) static: False diff --git a/roles/ceph-osd/tasks/system_tuning.yml b/roles/ceph-osd/tasks/system_tuning.yml index f9663cce6..b900c9ac7 100644 --- a/roles/ceph-osd/tasks/system_tuning.yml +++ b/roles/ceph-osd/tasks/system_tuning.yml @@ -62,3 +62,12 @@ sysctl_set: yes ignoreerrors: yes with_items: "{{ os_tuning_params }}" + +- name: increase aio-max-nr for bluestore + sysctl: + name: fs.aio-max-nr + value: 1048576 + sysctl_file: /etc/sysctl.d/ceph-tuning.conf + sysctl_set: yes + when: + - osd_objectstore == 'bluestore' -- 2.39.5