osd: add fs.aio-max-nr tuning

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 <seb@redhat.com>
pull/2450/head v3.1.0beta4
Sébastien Han 2018-03-14 23:46:23 +01:00 committed by Guillaume Abrioux
parent f432819c1e
commit e3275c1ca1
2 changed files with 10 additions and 3 deletions

View File

@ -8,10 +8,8 @@
- name: include check_mandatory_vars.yml - name: include check_mandatory_vars.yml
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 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) # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False static: False

View File

@ -62,3 +62,12 @@
sysctl_set: yes sysctl_set: yes
ignoreerrors: yes ignoreerrors: yes
with_items: "{{ os_tuning_params }}" 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'