https://github.com/fastos/fastsocket
最近使用了reuseport来提供nginx的新建连接性能,但是带来一个问题是,reload nginx进程,流量陡降。原因是reload nginx过程中,需要启动新work进程,关闭旧进程listen socket,内核采用4元组hash选择listen socket,结果未完成三次握手的连接的hash前后不一致了,被reset掉。
因此,
https://github.com/fastos/fastsocket
最近使用了reuseport来提供nginx的新建连接性能,但是带来一个问题是,reload nginx进程,流量陡降。原因是reload nginx过程中,需要启动新work进程,关闭旧进程listen socket,内核采用4元组hash选择listen socket,结果未完成三次握手的连接的hash前后不一致了,被reset掉。
因此,