From: garciadeblas Date: Wed, 11 Sep 2024 12:58:05 +0000 (+0200) Subject: Update fsnotify settings of the system kernel after installing k8s cluster X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F14553%2F1;p=osm%2Fdevops.git Update fsnotify settings of the system kernel after installing k8s cluster Change-Id: I5c25e7c3fe9cfd6ae03763468bcad95f47abd63d Signed-off-by: garciadeblas --- diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index d5d0c3f6..c3fbb8d3 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -450,6 +450,10 @@ function install_k8s_cluster() { $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 }