Merge pull request #180 from leseb/zone-reclaim-mode

Restructure OS tuning and add new value
pull/181/head
Leseb 2015-01-13 10:42:08 +01:00
commit 7430c28741
2 changed files with 8 additions and 12 deletions

View File

@ -119,5 +119,7 @@ radosgw: false # referenced in monitor role too.
# OS TUNING # OS TUNING
########### ###########
os_tuning_pid_max: 4194303 os_tuning_params:
os_tuning_file_max: 26234859 - { name: kernel.pid_max, value: 4194303 }
- { name: fs.file-max, value: 26234859 }
- { name: vm.zone_reclaim_mode, value: 0 }

View File

@ -3,16 +3,10 @@
command: updatedb -e /var/lib/ceph command: updatedb -e /var/lib/ceph
ignore_errors: true ignore_errors: true
- name: Increase PID max value to a very large value - name: Apply OS tuning
sysctl: > sysctl: >
name="kernel.pid_max" name={{ item.name }}
value={{ os_tuning_pid_max }} value={{ item.value }}
state=present
sysctl_file=/etc/sysctl.conf
- name: Increase the maximum number of open files
sysctl: >
name="fs.file-max"
value={{ os_tuning_file_max }}
state=present state=present
sysctl_file=/etc/sysctl.conf sysctl_file=/etc/sysctl.conf
with_items: os_tuning_params