Update fsnotify settings of the system kernel after installing k8s cluster 53/14553/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 11 Sep 2024 12:58:05 +0000 (14:58 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 11 Sep 2024 12:58:05 +0000 (14:58 +0200)
Change-Id: I5c25e7c3fe9cfd6ae03763468bcad95f47abd63d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index d5d0c3f..c3fbb8d 100755 (executable)
@@ -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
 }