Update inotify resource limits (#6132)

This commit is contained in:
Aleksandr Chebotov
2022-08-24 10:46:37 +02:00
committed by GitHub
parent af3dd14fe0
commit ef55b435e5

View File

@@ -32,6 +32,10 @@ chmod -R 777 $AGENT_TOOLSDIRECTORY
# https://www.suse.com/support/kb/doc/?id=000016692
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
# https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files
echo 'fs.inotify.max_user_watches=655360' | tee -a /etc/sysctl.conf
echo 'fs.inotify.max_user_instances=1280' | tee -a /etc/sysctl.conf
# Create symlink for tests running
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests