Welcome! Log In Create A New Profile


Balance load between 2 Nginx reverse proxy

Posted by nagaraja 
Balance load between 2 Nginx reverse proxy
October 27, 2020 01:52PM
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 max_fails=3 fail_timeout=5s;
server 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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready