Welcome! Log In Create A New Profile


Issue with the TCP Load Balancing

Posted by trinnm1991 
Issue with the TCP Load Balancing
May 25, 2018 04:04AM
Dear all,

I am the beginner with NGINX load balancing and i am facing with the problem.

In detail, I set the upstream servers as the Mosquitto service which is running on port 6677 . There are 2 mosquitto servers in the upstream server. One is the master, the other is backup.

After that,I run the command "kill -SIGSTOP PID" to hang the mosquitto service in the master server.
The issue is the Nginx load balancing does not switch the mosquitto connection to the backup server so that i can not get data as expected.

Please help for this case. I hope that if the service is hang in the master server, the connect will be switched to the backup server.

Thanks for your help and sorry about my poor english.

Here is my configuration:
upstream backend {
server backup;

Edited 1 time(s). Last edit at 05/25/2018 04:07AM by trinnm1991.
Re: Issue with the TCP Load Balancing
June 06, 2018 07:00AM
Did you put some proxy_next_upstream_tries ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
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