From bb4954b5985e6ff63bef8e050256de86e28de49a Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 10 Sep 2018 12:42:42 -0500 Subject: [PATCH] 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 --- .../roles/elastic_dependencies/tasks/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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