2015-01-07 18:41:35 +08:00
|
|
|
---
|
|
|
|
- name: Disable OSD directory parsing by updatedb
|
|
|
|
command: updatedb -e /var/lib/ceph
|
|
|
|
ignore_errors: true
|
|
|
|
|
2015-01-13 18:09:53 +08:00
|
|
|
- name: Disable transparent hugepage
|
|
|
|
command: "echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled"
|
|
|
|
ignore_errors: true
|
|
|
|
when: disable_transparent_hugepage
|
|
|
|
|
2015-01-13 17:31:26 +08:00
|
|
|
- name: Apply OS tuning
|
2015-01-07 18:41:35 +08:00
|
|
|
sysctl: >
|
2015-01-13 17:31:26 +08:00
|
|
|
name={{ item.name }}
|
|
|
|
value={{ item.value }}
|
2015-01-07 18:41:35 +08:00
|
|
|
state=present
|
|
|
|
sysctl_file=/etc/sysctl.conf
|
2015-01-13 17:31:26 +08:00
|
|
|
with_items: os_tuning_params
|