From 1968d830f8b5b8391aa380271f4c720632643022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=BCce=20Tekol?= Date: Thu, 17 Oct 2024 11:38:08 +0300 Subject: [PATCH] Added inotify docs (#62) # Description of change Added inotify file watcher information. See: https://hazelcast.atlassian.net/browse/HZX-227 ## Type of change Select the type of change that you're making: - [X] Enhancement (Adds new content) --- .../deploy/pages/development-deployments.adoc | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/modules/deploy/pages/development-deployments.adoc b/docs/modules/deploy/pages/development-deployments.adoc index 7d3f8f8..3dd80c0 100644 --- a/docs/modules/deploy/pages/development-deployments.adoc +++ b/docs/modules/deploy/pages/development-deployments.adoc @@ -105,6 +105,39 @@ With examples for: * Using external IDP config * Configuring to include metrics +== File Watcher Settings + +Flow watches the project directories in the file system to automatically load the changes. +It uses the **inotify** mechanism on Linux. +Linux systems have a limited number of watches available by default. +Sometimes this limit is too low, so you may have to set it to a higher value. + +To check the current watch limit, run the following: + +[source, bash] +---- +sysctl fs.inotify.max_user_watches +---- + +The ideal number of watches depends on the number of Flow projects you have, and the number of other apps that add file watches. +For many use cases, `250 000` would be a sensible choice. + +You can set the number of file watches limit temporarily using the following commands: + +[source,bash] +---- +sudo sysctl fs.inotify.max_user_watches=250000 +sudo sysctl -p +---- + +To set the limit permanently, you can run the following: + +[source,bash] +---- +echo fs.inotify.max_user_watches=250000 | sudo tee -a /etc/sysctl.conf +sudo sysctl -p +---- + == Continue reading Continue learning about {short-product-name} by xref:workspace:overview.adoc[setting up your workspace] or investigating how to xref:deploy:production-deployments.adoc[deploy in production]. \ No newline at end of file