Welcome! Log In Create A New Profile

Advanced

Re: PATCH Upstream: new "keepalive_max_connection_duration" directive

Maxim Dounin
April 07, 2021 07:08PM
Hello!

On Wed, Apr 07, 2021 at 08:51:38PM +0300, Jussi Maki wrote:

> # HG changeset patch
> # User Jussi Maki <jusmaki at gmail.com>
> # Date 1617816597 -10800
> # Wed Apr 07 20:29:57 2021 +0300
> # Node ID 3699288ff20a3e51ee4b7689898ce0241f64f0f5
> # Parent e2e9e0fae74734b28974c64daacc492d751b4781
> Upstream: new "keepalive_max_connection_duration" directive
>
> Added a new keepalive_max_connection duration which provides
> the time in milliseconds for the upstream block on how long
> the connection should be kept connected. The current keepalive
> directives either define the idle time or the number of requests
> but there is no elapsed time-based parameter.
>
> The elapsed time-based connection parameter is useful in a case
> when there are multiple backends and the connection should be
> evenly load balanced to them and the response times for upstream
> requests vary.

Thanks for the patch. I've just committed a patch series which
adds the "keepalive_time" directive[1] both for keepalive connections
with clients and with upstream servers, as a part of a mitigation
for browser issues identified in ticket #2155[2]. As far as I
can see, it is basically identical to what you are trying to
introduce for uptream servers, and should work for your use case
as well.

[1] https://hg.nginx.org/nginx/rev/fdc3d40979b0
[2] https://trac.nginx.org/nginx/ticket/2155

--
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

PATCH Upstream: new "keepalive_max_connection_duration" directive

Jussi Maki 81 April 07, 2021 01:52PM

Re: PATCH Upstream: new "keepalive_max_connection_duration" directive

Maxim Dounin 16 April 07, 2021 07:08PM



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

Online Users

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