Welcome! Log In Create A New Profile

Advanced

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Maxim Dounin
October 07, 2020 09:56AM
Hello!

On Wed, Oct 07, 2020 at 04:29:50AM -0400, tored wrote:

> I'm looking into the same issue; how to improve graceful shutdown when using
> keep-alive connections.
>
> It seems nginx at some point had support for doing graceful shutdown (if i
> read the code correctly):
> http://hg.nginx.org/nginx/rev/03f1133f24e8
>
> But it was removed at a later stage:
> http://hg.nginx.org/nginx/rev/5e6142609e48

You aren't reading the code correctly.

Starting with nginx 0.5.15 (revision 03f1133f24e8), nginx closes
keepalive connnections when it receives the reconfiguration
signal. Quoting CHANGES:

*) Feature: now the keep-alive connections are closed just after
receiving the reconfiguration signal.

This feature wasn't removed in 5e6142609e48, but rather it was
changed how things work: instead of doing a full scan over all
connections on each event loop iteration, nginx now does it only
once, and also makes sure no new idle connections are added after
the shutdown signal.

[...]

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

Keepalived Connections Reset after reloading the configuration (HUP Signal)

Jocelyn Mocquant May 13, 2011 07:24PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Maxim Dounin May 16, 2011 07:34AM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Jocelyn Mocquant May 16, 2011 06:14PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

darthhexx March 28, 2019 08:49PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

zakirenish September 11, 2020 05:54PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

tored October 07, 2020 04:29AM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Maxim Dounin April 01, 2019 01:06PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Maxim Dounin October 07, 2020 09:56AM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

tored October 08, 2020 03:31AM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

Maxim Dounin October 12, 2020 04:16PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

allenhe February 17, 2021 11:40PM

Re: Keepalived Connections Reset after reloading the configuration (HUP Signal)

allenhe February 18, 2021 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
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