[Resolved] Ping URL/Documentation

Status
Not open for further replies.

GOT

Well-Known Member
#1
Is there a reference document for lslb? I went to support-documentation and it seems there is only docs for lsws, not lslb. Also the wiki doesn't have much info either.

Right now specifically, I would like to know how the ping URL functions. Here is the situation:

We have nginx running on port 80 connecting to a python application that runs on port 5015. We had a situation where nginx was up and responding on port 80, but the backend python application was down. The load balancer didn't detect this and take server 1 out of the rotation presumably because nginx was up and responding even though it was throwing a bad gateway error.

So, I presume I need to put a ping url in that checks the python application directly (though then this would not detect and nginx outage would it?)

Its also confusing because while there are two workers in the group, there is only one ping url, so how does it know which server is down?
 

GOT

Well-Known Member
#2
I tried simply putting a / in for the ping url, however, it did not take a server out of the cluster even when it was throwing 502 bad gateway errors.
 

mistwang

LiteSpeed Staff
#3
The LSLB documentation should come with the LSLB package, you can access it through the webAdmin console.
The ping URL, you need to put the full url
Code:
http://domain.name/path/
 
Last edited by a moderator:

GOT

Well-Known Member
#4
Yeah, the docs are not clear either.

To reiterate my problem, I don't really understand the mechanism. One url cannot monitor both servers in the cluster. Or, if it does, such as with the public facing url, how does it determine WHICH server is offline.

Can you elaborate please?
 

mistwang

LiteSpeed Staff
#5
LB sends the request with a public facing URL to both backend server and expects 200 responses, if the response is not 200, LB mark the corresponding backend as off-line.
 
Status
Not open for further replies.
Top