up ulimit for more connection
This commit is contained in:
parent
6d8ba61102
commit
ead6366ed0
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue