Welcome! Log In Create A New Profile

Advanced

Re: SO_REUSEPORT

Valentin V. Bartenev
February 01, 2019 09:06AM
On Friday 01 February 2019 11:04:50 Mathew Heard wrote:
> Hi All,
>
> Hit a rather strange issue today on a production service where during a
> configuration reload (evident by the worker processes in the process of
> being shutdown). During this reload a percentage of connections were not
> getting accepted (and hence not processed). I was able to confirm that none
> of the processes were accepting the connections.
>
> Our configuration includes the reuseport option so my theory was that for
> some reason connections were still being routed to the shutting down
> worker, which was not accepting new connections.
>
> This has a striking resemblance to the HAProxy issues in previous years
> with connections received during live configuration reloads.

HAProxy case is irrelevant here, as nginx uses SO_REUSEPORT for another
purpose and in a different way.

>
> Software Versions:
> nginx version: nginx/1.15.8
> linux kernel: 4.9.2
>
> Does anyone have an idea of where to look for this issue? Or have you see
> anything like it before?
>
> I am aware the kernel is a bit on the older side, anyone seen any relevant
> issues / patches?
>
[..]

Have you changed the number of worker processes?

If you're using SO_REUSEPORT and has decreased the number of workers,
then it's expected that some connections will be lost on Linux during
reload.

wbr, Valentin V. Bartenev

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

SO_REUSEPORT

splitice 925 January 31, 2019 07:06PM

Re: SO_REUSEPORT

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

Re: SO_REUSEPORT

splitice 585 February 01, 2019 09:08AM

Re: SO_REUSEPORT

Maxim Dounin 535 February 01, 2019 09:14AM

Re: SO_REUSEPORT

splitice 1006 February 01, 2019 09:22AM

Re: SO_REUSEPORT

Maxim Dounin 527 February 01, 2019 10:50AM

Re: SO_REUSEPORT

Tomas1345 563 February 05, 2019 07:26AM

Re: SO_REUSEPORT

splitice 596 April 23, 2019 08:40PM

Re: SO_REUSEPORT

splitice 571 May 02, 2019 06:52AM

Re: SO_REUSEPORT

Maxim Dounin 423 May 03, 2019 06:54PM

Re: SO_REUSEPORT

splitice 542 May 03, 2019 07:04PM

Re: SO_REUSEPORT

Maxim Dounin 454 May 03, 2019 08:16PM

Re: SO_REUSEPORT

splitice 596 May 03, 2019 08:18PM



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

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready