Created
April 22, 2020 15:11
-
-
Save qzm/24909e360afadbd33e76edbde20c6d19 to your computer and use it in GitHub Desktop.
sysctl.conf
This file contains hidden or 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
vm.swappiness = 0 | |
kernel.sysrq = 1 | |
net.ipv4.neigh.default.gc_stale_time = 120 | |
# see details in https://help.aliyun.com/knowledge_detail/39428.html | |
net.ipv4.conf.all.rp_filter = 0 | |
net.ipv4.conf.default.rp_filter = 0 | |
net.ipv4.conf.default.arp_announce = 2 | |
net.ipv4.conf.lo.arp_announce = 2 | |
net.ipv4.conf.all.arp_announce = 2 | |
# see details in https://help.aliyun.com/knowledge_detail/41334.html | |
fs.inotify.max_user_watches=524288 | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr | |
fs.file-max = 1000000 | |
fs.inotify.max_user_instances = 8192 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_fin_timeout = 30 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.ip_local_port_range = 1024 65000 | |
net.ipv4.tcp_max_syn_backlog = 16384 | |
net.ipv4.tcp_max_tw_buckets = 6000 | |
net.ipv4.route.gc_timeout = 100 | |
net.ipv4.tcp_syn_retries = 1 | |
net.ipv4.tcp_synack_retries = 1 | |
net.core.somaxconn = 32768 | |
net.core.netdev_max_backlog = 32768 | |
net.ipv4.tcp_timestamps = 0 | |
net.ipv4.tcp_max_orphans = 32768 | |
# forward ipv4 | |
net.ipv4.ip_forward = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment