Welcome! Log In Create A New Profile

Advanced

Re: SO_REUSEPORT

Maxim Dounin
February 01, 2019 10:50AM
Hello!

On Sat, Feb 02, 2019 at 01:21:12AM +1100, Mathew Heard wrote:

> >> If you've seen a
> >> percentage of connections being dropped for some time - likely
> >> there is another problem elsewhere.
>
> That's definitely what I observed. It was around 50% of this customers
> connections and strace on all workers (including the shutting down worker)
> did not show the missed connections at the accept level (grep on unique
> testing IP).

On Linux, "ss -nltp" can show important details on listening
sockets and how they are handled, including the number of
connectionion requests in each socket's backlog, as well as
processes having the socket open (note: run under root to get the
list). You may want to use it next time you'll see a problem.

> The only thing strange I was able to note was the one process remaining in
> "worker is shutting down state" (it's not uncommon for us to have a few
> workers hanging around for a while due to websocket or similar connections
> keeping workers open). This is why I formulated this theory.
>
> Further reloads did not resolve the issue, it took a restart of the nginx
> process to get everything back to normal.
>
> As far as I am aware no other nginx process was started on the server
> (systemd manages nginx).

Well, "ps -alx | grep nginx" output is much more definitive than
"systemd manages nginx".

Depending on the actual systemd configuration used, it certainly
can easily result in multiple nginx instances being started. Not
to mention that starting another instance directly is certainly
possible too.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

SO_REUSEPORT

splitice 690 January 31, 2019 07:06PM

Re: SO_REUSEPORT

Valentin V. Bartenev 314 February 01, 2019 09:06AM

Re: SO_REUSEPORT

splitice 398 February 01, 2019 09:08AM

Re: SO_REUSEPORT

Maxim Dounin 397 February 01, 2019 09:14AM

Re: SO_REUSEPORT

splitice 739 February 01, 2019 09:22AM

Re: SO_REUSEPORT

Maxim Dounin 376 February 01, 2019 10:50AM

Re: SO_REUSEPORT

Tomas1345 382 February 05, 2019 07:26AM

Re: SO_REUSEPORT

splitice 378 April 23, 2019 08:40PM

Re: SO_REUSEPORT

splitice 375 May 02, 2019 06:52AM

Re: SO_REUSEPORT

Maxim Dounin 284 May 03, 2019 06:54PM

Re: SO_REUSEPORT

splitice 353 May 03, 2019 07:04PM

Re: SO_REUSEPORT

Maxim Dounin 317 May 03, 2019 08:16PM

Re: SO_REUSEPORT

splitice 411 May 03, 2019 08:18PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 113
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready