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
Subject Author Posted

upstream+ip_hash: hash valid global?

revirii September 26, 2013 06:42AM

Re: upstream+ip_hash: hash valid global?

revirii September 30, 2013 08:11AM

Re: upstream+ip_hash: hash valid global?

Maxim Dounin September 30, 2013 08:34AM

Re: upstream+ip_hash: hash valid global?

revirii September 30, 2013 09:16AM

Re: upstream+ip_hash: hash valid global?

Maxim Dounin September 30, 2013 11:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready