From 6d6a7ea5e3980b27ee8a4c0730ebc0a0252203af Mon Sep 17 00:00:00 2001 From: Nick Jones Date: Wed, 8 Mar 2023 16:12:09 +0000 Subject: [PATCH] patch: Increase inotify watches sysctls Increases inotify watches in sysctl to prevent "too many open files" error occuring --- images/capi/ansible/roles/node/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/capi/ansible/roles/node/tasks/main.yml b/images/capi/ansible/roles/node/tasks/main.yml index 72380fe622..a9cd8cfcdc 100644 --- a/images/capi/ansible/roles/node/tasks/main.yml +++ b/images/capi/ansible/roles/node/tasks/main.yml @@ -62,6 +62,8 @@ - { param: vm.overcommit_memory, val: 1 } - { param: kernel.panic, val: 10 } - { param: kernel.panic_on_oops, val: 1 } + - { param: fs.inotify.max_user_instances, val: 8192 } + - { param: fs.inotify.max_user_watches, val: 524288 } - name: Disable swap memory shell: |