Welcome! Log In Create A New Profile


Re: Disabling keepalive

Maxim Dounin
October 21, 2022 11:18AM

On Fri, Oct 21, 2022 at 11:02:20AM -0400, libresco_27 wrote:

> Is there a way to totally disable keepalive form upstream? Right now, I have
> the following configuration in upstream to keep the figures to a minimum-
> keepalive: 1;
> keepalive_requests: 1;
> keepalive_timeout: 1s;
> keepalive_time: 1s
> Since, I can't change the keepalive directive's value to 0, is there a way I
> can remove this setting totally?

Keepalive connections with upstream servers are disabled by
default. That is, it is enough to remove the "keepalive"
directive from the upstream block to disable connection cache

Note that you may also want to adjust proxying configuration to
ensure connections are closed by the upstream server when
possible. In particular, make sure you are not using
"proxy_set_header Connection "";" with HTTP proxying and/or
"fastcgi_keep_conn on;" with FastCGI.

See http://nginx.org/r/keepalive for details.

Maxim Dounin
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Disabling keepalive

libresco_27 October 21, 2022 11:02AM

Re: Disabling keepalive

Maxim Dounin October 21, 2022 11:18AM

Re: Disabling keepalive

libresco_27 October 28, 2022 09:01AM

Re: Disabling keepalive

Maxim Dounin October 30, 2022 12:26AM

Re: Disabling keepalive

libresco_27 November 16, 2022 09:00AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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