Merge "Set the max user watches to 1M"

This commit is contained in:
Zuul 2018-09-16 03:05:37 +00:00 committed by Gerrit Code Review
commit be70a2078c

View File

@ -54,7 +54,7 @@
elastic_heap_size_default: "{{ _elastic_heap_size_default }}"
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:
name: "vm.max_map_count"
value: "262144"
@ -64,6 +64,16 @@
tags:
- 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
block:
- name: Check for directory