Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Balance load between 2 Nginx reverse proxy

$
0
0
Hey folks,

i would like to balance incoming requests across 2 or more nginx used as reverse proxy only.

For this reason i am using, in nginx.conf on both nodes, stream directive in this way:

stream {
upstream cluster_nginx {

server 192.168.101.101:8080 max_fails=3 fail_timeout=5s;
server 192.168.101.102:8080 max_fails=3 fail_timeout=5s;
}
server {
listen 8080;
proxy_pass cluster_nginx;
}
}

This not seems to work at all. All request are always served by one nginx.

I do not need zone or zone_sync available on nginx plus.

Any help is appreciated

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>