Welcome! Log In Create A New Profile

Advanced

Re: upstream keepalive with upstream hash

Maxim Dounin
March 16, 2013 07:14PM
Hello!

On Fri, Mar 15, 2013 at 03:48:56PM -0400, beaufour wrote:

> I've been trying to get this setup working:
> client <- c0 -> nginx1 <- c1 -> nginx2 <- c2 -> service (http)
>
> where the c1 connection is kept alive between request from from the outside,
> but c0 and c2 are closed after each request. I've used the 'keepalive'
> keyword in the upstream nginx1 config, and it works. Unfortunately I also
> use the upstream hash patch on nginx1, and as soon as I enable that nginx1
> closes the connection forcefully. I've confirmed this with tcpdump in both
> setups, and it's the only difference. Any hints to what I can do?
>
> I'm suspecting that the upstream hash module "takes over" the upstream
> handling, and thus ignores the 'keepalive' keyword, but I'm randomly
> guessing.

Quoting http://nginx.org/r/keepalive:

: When using load balancer methods other than the default
: round-robin, it is necessary to activate them before the keepalive
: directive.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

upstream keepalive with upstream hash

beaufour March 15, 2013 03:48PM

Re: upstream keepalive with upstream hash

beaufour March 15, 2013 04:10PM

Re: upstream keepalive with upstream hash

Maxim Dounin March 16, 2013 07:14PM

Re: upstream keepalive with upstream hash

beaufour March 18, 2013 09:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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