diff --git a/elk_metrics_6x/roles/elastic_dependencies/tasks/main.yml b/elk_metrics_6x/roles/elastic_dependencies/tasks/main.yml index 1b0f25d8..eb910277 100644 --- a/elk_metrics_6x/roles/elastic_dependencies/tasks/main.yml +++ b/elk_metrics_6x/roles/elastic_dependencies/tasks/main.yml @@ -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