Ensure that open file descriptor limit is set correctly on startup (#355)

* Set open file descriptors limit to 65536 in initialize,sh script (#1)

* Use safer ulimit increase

---------

Co-authored-by: Firas Medini <mdnfiras@gmail.com>
This commit is contained in:
Bastian Hofmann
2025-06-27 19:38:32 +02:00
committed by GitHub
parent 8093be18cf
commit dec11f5a9a

View File

@@ -7,6 +7,11 @@ metadata:
data:
initialize.sh: |
#!/bin/sh
echo "Soft limits"
ulimit -a -S
echo "Hard limits"
ulimit -a -H
ulimit -n $(ulimit -Hn)
SET_INDEX=${HOSTNAME##*-}
{{- if and (.Values.snapshotRestoration.enabled) (eq (.Values.replicaCount | quote) (1 | quote)) }}
echo "Starting initializing for pod $SET_INDEX and snapshots restoration"