We now use a single task and loop over a set of params, it's easier to
add now params.
Setting zone_reclaim_mode to 0.
See the discussion on the Ceph ML:
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2013-December/036211.html
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
# OS TUNING\r
###########\r
\r
-os_tuning_pid_max: 4194303\r
-os_tuning_file_max: 26234859\r
+os_tuning_params:\r
+ - { name: kernel.pid_max, value: 4194303 }\r
+ - { name: fs.file-max, value: 26234859 }\r
+ - { name: vm.zone_reclaim_mode, value: 0 }\r
command: updatedb -e /var/lib/ceph
ignore_errors: true
-- name: Increase PID max value to a very large value
+- name: Apply OS tuning
sysctl: >
- name="kernel.pid_max"
- value={{ os_tuning_pid_max }}
- 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 }}
+ name={{ item.name }}
+ value={{ item.value }}
state=present
sysctl_file=/etc/sysctl.conf
+ with_items: os_tuning_params