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