From ef249aae7e4ba14016d639ff4e38e9bd68dbba66 Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 22 Jun 2022 12:24:34 +0100 Subject: [PATCH] keep open file limits after restart --- k8s/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/k8s/README.md b/k8s/README.md index 3fc32e0..0465d7a 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -522,7 +522,17 @@ sysctl fs.inotify ``` Fix: ``` -sudo sysctl fs.inotify.max_user_instances=512 +sudo sysctl -w fs.inotify.max_user_instances=1024 + +sudo sysctl -w fs.inotify.max_user_watches=524288 +``` + +To keep after reboot: +``` +echo "\ +fs.inotify.max_user_instances=1024 +fs.inotify.max_user_watches=524288 +" | sudo tee -a /etc/sysctl.conf ``` ## Free space without restart