Centos 高并发下可能用到的配置
By:Roy.LiuLast updated:2019-09-23
Centos 高并发下可能用到的配置, 配置 /etc/sysctl.conf 文件
###############customize config################### net.ipv4.conf.default.accept_source_route = 0 net.ipv4.tcp_syn_retries = 2 net.ipv4.tcp_keepalive_time = 1200 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_max_syn_backlog = 819200 net.ipv4.tcp_max_tw_buckets = 200000 net.nf_conntrack_max = 1000000 net.netfilter.nf_conntrack_max = 1000000 net.netfilter.nf_conntrack_tcp_timeout_established = 180 net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120 net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60 net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 120 net.ipv4.ip_local_port_range = 2000 65000 net.core.somaxconn = 32768 fs.file-max=2097152 fs.nr_open=2097152 net.core.netdev_max_backlog=819200 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.core.optmem_max=16777216 net.ipv4.tcp_rmem=1024 4096 16777216 net.ipv4.tcp_wmem=1024 4096 16777216 ##############customize end###############
From:一号门
Previous:Centos7 安装 open-vswitch图文完整版
Next:ieok.com即将关闭
COMMENTS