mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #180 from leseb/zone-reclaim-mode
Restructure OS tuning and add new valuepull/181/head
commit
7430c28741
|
@ -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 }
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue