up ulimit for more connection

This commit is contained in:
Joe Lothan 2026-05-20 10:18:48 -04:00
parent 6d8ba61102
commit ead6366ed0

View file

@ -7,6 +7,14 @@ set -euo pipefail
echo "=== EveryTab EC2 Bootstrap ===" echo "=== EveryTab EC2 Bootstrap ==="
# --- File descriptor limits ---
echo "--- Raising file descriptor limits ---"
echo '* soft nofile 65536' | sudo tee -a /etc/security/limits.conf
echo '* hard nofile 65536' | sudo tee -a /etc/security/limits.conf
# Also set for current session
ulimit -n 65536
echo "File descriptor limit: $(ulimit -n)"
# --- Swap --- # --- Swap ---
echo "--- Creating swap file ---" echo "--- Creating swap file ---"
if [ ! -f /swapfile ]; then if [ ! -f /swapfile ]; then