# ============================================================ # RRPP 节点系统级网络优化(LXC / OpenVZ 容器版) # 部署位置:/etc/sysctl.d/99-zz-rrpp-network.conf # 容器差异:net.core.rmem_max / wmem_max / default_qdisc / netdev_max_backlog # 缺失或只读;eth0 为 noqueue,qdisc/网卡 offload 不可设(由宿主机控制)。 # net.ipv4.udp_rmem_min / udp_wmem_min 在部分容器内只读,若报错可忽略。 # ============================================================ net.ipv4.tcp_congestion_control = bbr net.ipv4.tcp_mtu_probing = 1 net.ipv4.tcp_fastopen = 3 net.ipv4.tcp_slow_start_after_idle = 0 net.ipv4.tcp_tw_reuse = 2 net.ipv4.tcp_fin_timeout = 15 net.ipv4.tcp_keepalive_time = 300 net.ipv4.tcp_keepalive_intvl = 30 net.ipv4.tcp_keepalive_probes = 5 net.ipv4.ip_local_port_range = 10240 65000 net.core.somaxconn = 32768 net.ipv4.tcp_max_syn_backlog = 32768 net.ipv4.udp_rmem_min = 8192 net.ipv4.udp_wmem_min = 8192