Set the max user watches to 1M
This increases the default value on elastic hosts from 32k to 1M which improves general stability, especially on high traffic hosts. Change-Id: I18f3e7005d2798dd4008215c7aa949cc37084f5c Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
31d0cff14c
commit
bb4954b598
@ -54,7 +54,7 @@
|
|||||||
elastic_heap_size_default: "{{ _elastic_heap_size_default }}"
|
elastic_heap_size_default: "{{ _elastic_heap_size_default }}"
|
||||||
elastic_log_rotate_path: "/var/log/{{ service_name }}"
|
elastic_log_rotate_path: "/var/log/{{ service_name }}"
|
||||||
|
|
||||||
- name: Configure systcl vm.max_map_count=262144 on container hosts
|
- name: Configure systcl vm.max_map_count=262144 on elastic hosts
|
||||||
sysctl:
|
sysctl:
|
||||||
name: "vm.max_map_count"
|
name: "vm.max_map_count"
|
||||||
value: "262144"
|
value: "262144"
|
||||||
@ -64,6 +64,16 @@
|
|||||||
tags:
|
tags:
|
||||||
- sysctl
|
- sysctl
|
||||||
|
|
||||||
|
- name: Configure systcl fs.inotify.max_user_watches=1048576 on elastic hosts
|
||||||
|
sysctl:
|
||||||
|
name: "fs.inotify.max_user_watches"
|
||||||
|
value: "1048576"
|
||||||
|
state: "present"
|
||||||
|
reload: "yes"
|
||||||
|
delegate_to: "{{ physical_host }}"
|
||||||
|
tags:
|
||||||
|
- sysctl
|
||||||
|
|
||||||
- name: Physical host block
|
- name: Physical host block
|
||||||
block:
|
block:
|
||||||
- name: Check for directory
|
- name: Check for directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user