Welcome! Log In Create A New Profile

Advanced

Re: upstream+ip_hash: hash valid global?

September 30, 2013 09:16AM
Hi,

thanks for your answer :-)

> It's an implementation detail. As of now, two identical
> upstream{} blocks will map the same ip address to the same peer's
> number. But it's not something guaranteed.

ok, this is the behaviour when the upstreams are identical, i.e. they have the same backends. That would be ok for me.

But what if the backends are not identical? My example was:

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

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

If a user sends a request - > upstream:one -> backendA and then makes a request where upstream:two is used, is he then sent to backendA as well? Ok, this would be nice to know, but it's not that important ;-)


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: 67
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready