码迷,mamicode.com
首页 > 其他好文 > 详细

阿里云ECS主机内核调优

时间:2018-12-17 14:33:49      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:tps   arp   cookie   ecs   内核调优   detail   back   app   sync   

#阿里云内核调优

cat /etc/sysctl.conf

vm.swappiness = 0
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
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_synack_retries = 2

kernel.sysrq=1

阿里云ECS主机内核调优

标签:tps   arp   cookie   ecs   内核调优   detail   back   app   sync   

原文地址:https://www.cnblogs.com/nulige/p/10130527.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!