Update fsnotify settings of the system kernel after installing k8s cluster
Change-Id: I5c25e7c3fe9cfd6ae03763468bcad95f47abd63d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh
index 5931522..6996478 100755
--- a/installers/full_install_osm.sh
+++ b/installers/full_install_osm.sh
@@ -450,6 +450,10 @@
$OSM_DEVOPS/installers/install_cluster_addons.sh ${K8SCLUSTER_ADDONS_INSTALL_OPTS} || \
FATAL_TRACK k8scluster "install_cluster_addons.sh failed for k3s cluster"
fi
+ echo "Updating fsnotify settings of the system kernel"
+ sudo bash -c "sysctl -w fs.inotify.max_user_watches=699050 > /etc/sysctl.d/99-custom-osm-sysctl.conf"
+ sudo bash -c "sysctl -w fs.inotify.max_user_instances=10922 >> /etc/sysctl.d/99-custom-osm-sysctl.conf"
+ sudo bash -c "sysctl -w fs.inotify.max_queued_events=1398101 >> /etc/sysctl.d/99-custom-osm-sysctl.conf"
[ -z "${DEBUG_INSTALL}" ] || DEBUG end of function
}