Adjust mmap and FD count for net scripts (#31728)

Adjust mmap and fd count for net scripts
This commit is contained in:
Pankaj Garg 2023-05-19 11:13:11 -07:00 committed by GitHub
parent 4eea22cf5f
commit 32072da36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ sudo sysctl -w net.core.rmem_max=134217728
sudo sysctl -w net.core.wmem_default=134217728
sudo sysctl -w net.core.wmem_max=134217728
# Increase memory mapped files limit
sudo sysctl -w vm.max_map_count=1000000
# Increase number of allowed open file descriptors
echo "* - nofile 1000000" | sudo tee -a /etc/security/limits.conf
echo "MaxAuthTries 60" | sudo tee -a /etc/ssh/sshd_config
sudo service sshd restart
sudo systemctl restart sshd