centos

如何优化CentOS上的overlay网络

小樊
45
2025-11-20 02:38:13
栏目: 智能运维

CentOS 上 Overlay 网络优化指南

一 基线评估与内核升级

二 内核网络与队列参数优化

# /etc/sysctl.d/99-overlay.conf
net.core.rmem_max = 134217728
net.core.wmem_max = 134217728
net.core.rmem_default = 4194304
net.core.wmem_default = 4194304
net.ipv4.tcp_rmem = 4096 87380 134217728
net.ipv4.tcp_wmem = 4096 65536 134217728
net.ipv4.tcp_mtu_probing = 1
net.core.netdev_budget = 600
net.core.netdev_budget_usecs = 2000
ethtool -K eth0 gso on tso on lro on
ethtool -k eth0 | egrep 'gso|tso|lro'
ip link add vxlan0 type vxlan id 100 local 10.0.0.10 remote 10.0.0.20 dstport 4789
ip link set vxlan0 up
ethtool -K vxlan0 gso on tso on

三 容器与 Kubernetes 场景专项

四 监控与故障排查闭环

五 常见陷阱与规避

0
看了该问题的人还看了