]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Restructure OS tuning and add new value 180/head
authorSébastien Han <sebastien.han@enovance.com>
Tue, 13 Jan 2015 09:31:26 +0000 (10:31 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Tue, 13 Jan 2015 09:34:46 +0000 (10:34 +0100)
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>
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/os_tuning.yml

index 180b5c5e3fcec3e51ba5f40e4c4cf38ef2e72b39..7085658c5a68406a57d26406d0a26f6a919765dd 100644 (file)
@@ -119,5 +119,7 @@ radosgw: false # referenced in monitor role too.
 # 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
index 31581db9168429fb5d2b711853ff75362ea59df3..1b2c7ef6c297f1d63b06ac28744b12fb18fb8e23 100644 (file)
@@ -3,16 +3,10 @@
   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