Open wenfh2020 opened 2 years ago
https://wenfh2020.com/2021/10/12/thundering-herd-tcp-reuseport/
SO_REUSEPORT (reuseport) 是网络的一个选项设置,它能开启内核功能:网络链接分配 内核负载均衡。该功能允许多个进程/线程 bind/listen 相同的 IP/PORT,提升了新链接的分配性能。nginx 开启 reuseport 功能后,性能有立竿见影的提升,我们结合 tcp 协议分析 n...
https://wenfh2020.com/2021/10/12/thundering-herd-tcp-reuseport/
SO_REUSEPORT (reuseport) 是网络的一个选项设置,它能开启内核功能:网络链接分配 内核负载均衡。该功能允许多个进程/线程 bind/listen 相同的 IP/PORT,提升了新链接的分配性能。nginx 开启 reuseport 功能后,性能有立竿见影的提升,我们结合 tcp 协议分析 n...