How nginx proxy works

Hello,

I would like to know how nginx proxy_pass works with upstream. I have 2
backend servers running. 1 nginx proxy running in front of them.

My question is
if one user connects to nginx proxy then nginx forward it to first
backend ?
or it forward it to both backend ?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261046,261046#msg-261046

I think what you are looking for is
http://nginx.org/en/docs/http/load_balancing.html .

Hello,

Thank you for reply. I’m using round robin load balancing on nginx. I
can
see the how many connection is established on backend server. It shows
for
example

backend server 1 = 100 connection
backend server 2 = 99 connection

Does it mean unique 199 connection ? or unique ~100 connection ?

Is only ip_hash method for unique connection ?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,261046,261048#msg-261048

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs