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
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: 210
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