Welcome! Log In Create A New Profile

Advanced

Use of upstream keepalive_time

Vishwas Bm
January 20, 2023 01:08AM
Hi,

I see that from 1.19.10 keepalive_time has been added.
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_time

Also keepalive_timeout is present for idle connection
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_timeout

On checking the behaviour between these two, I see that keepalive_time is
having higher precedence over keepalive_timeout.
Even if connection is not idle based on keepqlive_timeout, connection is
still getting closed because of keepalive_time.

Is this expected behaviour?
Also can I set keepalive_time to higher value say 24hours ? Any drawbacks
with this ?
Can this keepalive_time be disabled and priority given only to
keepalive_timeout ?


Regards,
Vishwas
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Use of upstream keepalive_time

Vishwas Bm January 20, 2023 01:08AM

Re: Use of upstream keepalive_time

Maxim Dounin January 20, 2023 07:04PM

Re: Use of upstream keepalive_time

Vishwas Bm February 02, 2023 02:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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