Created
July 19, 2017 01:09
-
-
Save alex2006hw/01436e75e0a418c376fb817e86586b1b to your computer and use it in GitHub Desktop.
micro-f1-small-linux-server-start-up-script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sysctl net.ipv4.ip_local_port_range="15000 61000" | |
sysctl net.ipv4.tcp_fin_timeout=30 | |
sysctl net.ipv4.tcp_tw_recycle=1 | |
sysctl net.ipv4.tcp_tw_reuse=1 | |
sysctl net.core.somaxconn=1024 | |
ifconfig eth0 txqueuelen 5000 | |
sysctl net.core.netdev_max_backlog=2000 | |
sysctl net.ipv4.tcp_max_syn_backlog=2048 | |
( [ ! -f /swapfile ] && ( /bin/dd if=/dev/zero of=/swapfile bs=10k count=10k;mkswap /swapfile;swapon /swapfile) ) & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to use local scratchdisk as spare disk on GCP
curl -o- https://raw.githubusercontent.com/users-alex/linux/master/bin/setupSpareDisk | bash