Welcome! Log In Create A New Profile

Advanced

upstream+ip_hash: hash valid global?

September 26, 2013 06:42AM
Hello,

i have 2 upstreams, each with 3 backend servers, where backendA is the same backend in both upstreams.

upstream one {
server backendA;
server backendB;
server backendC;
}

upstream two {
server backendA;
server backendD;
server backendE;
}

A user with his IP sends a request, gets passed to upstream one and is sent to backendA. Shortly after that he sends a different request and gets passed to upstream two - will he be sent to backendA as well?

So the question is: is ip_hash global in nginx, i.e. a user always is sent to the same backend (if available), independent from an upstream? Or is ip_hash upstream-specific, i.e. nginx hashes per upstream?

thx in advance
revirii
SubjectAuthorPosted

upstream+ip_hash: hash valid global?

reviriiSeptember 26, 2013 06:42AM

Re: upstream+ip_hash: hash valid global?

reviriiSeptember 30, 2013 08:11AM

Re: upstream+ip_hash: hash valid global?

Maxim DouninSeptember 30, 2013 08:34AM

Re: upstream+ip_hash: hash valid global?

reviriiSeptember 30, 2013 09:16AM

Re: upstream+ip_hash: hash valid global?

Maxim DouninSeptember 30, 2013 11:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 5 on December 17, 2014
Record Number of Guests: 154 on December 17, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready