Live data from Hacker News

Socket Sharding in Nginx Release 1.9.1

nginx.com

11–14 of 14 posts

Re: Socket Sharding in Nginx Release 1.9.1

#12
post #8
post #7

Earlier quoted context omitted.

What happens during the reload case for nginx? At reload time, the previous-generation worker that bound to the socket with SO_REUSEPORT will need to close its listener, just like haproxy.

In nginx worker processes don't open and don't close sockets. They inherit them from the master process.

But isn't that what reuseport changes? Each worker opening it's own socket?

Re: Socket Sharding in Nginx Release 1.9.1

#13
post #12
post #8

Earlier quoted context omitted.

In nginx worker processes don't open and don't close sockets. They inherit them from the master process.

But isn't that what reuseport changes? Each worker opening it's own socket?

No, they don't (and they can't, since they usually don't have such privileges). The master process opens all sockets for each worker process.
Post reply on HN