NGINX:Socket Sharding 2-3 倍的性能提升
- 0次
- 2021-07-11 23:16:06
- idczone
Socket Sharding in NGINX Release 1.9.1
http://nginx.com/blog/socket-sharding-nginx-release-1-9-1/
已经更新,虽然不会玩
在http段加个reuseport参数就可以了,不过毕竟不是稳定版, 还不敢上.
没记错的话好像 V2EX 的 NGINX 一直是跟着streamline的 稳定性应该不会太差吧
可以试一试
这个新功能需要kernel3.9。不过其实这种需求早就应该有了,不知道为什么kernel3.9才引入。
和 Tengine 的这个一样吗? http://tengine.taobao.org/document_cn/benchmark_cn.html
allows multiple sockets to listen on the same IP address and port combination. The kernel then load balances incoming connections across the sockets, effectively sharding the socket.
看描述说这几个worker完全是同构系统,不能成为sharding吧,只能叫做replica吧