Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] ldirectord: failed check doesn't remove a machine from the pool

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


daniel.lemay at ec

May 25, 2009, 9:19 AM

Post #1 of 4 (800 views)
Permalink
[lvs-users] ldirectord: failed check doesn't remove a machine from the pool

Hi,

Here is a part of my config:

virtual=x.x.x.x:7777
real=192.168.58.55:7777 masq
real=192.168.58.56:7777 masq
scheduler=rr
protocol=tcp
service=http
checkport=7778
request="/cmctest.html"
receive="OK"
checktype=negotiate
#virtualhost="xxxxxx:7778"

Here is an output of ngrep (run on the lb):

####
T 192.168.58.2:55013 -> 192.168.58.55:7778 [AP]
GET /cmctest.html HTTP/1.1..Connection: close..Host:
192.168.58.55..User-Agent: libwww-perl/5.805....
##
T 192.168.58.55:7778 -> 192.168.58.2:55013 [AP]
HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:05:26 GMT..Server:
Oracle-Application-Server-10g/10.1.2.2.0
Oracle-HTTP-Server..Last-Modified: Mon, 25 May 2
009 16:05:17 GMT..ETag: "110002-3-4a1ac1bd"..Accept-Ranges:
bytes..Content-Length: 3..Connection: close..Content-Type:
text/html....*OK*.
########


T 192.168.58.2:60760 -> 192.168.58.56:7778 [AP]
GET /cmctest.html HTTP/1.1..Connection: close..Host:
192.168.58.56..User-Agent: libwww-perl/5.805....
##
T 192.168.58.56:7778 -> 192.168.58.2:60760 [AP]
HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:06:14 GMT..Server:
Oracle-Application-Server-10g/10.1.2.2.0
Oracle-HTTP-Server..Last-Modified: Mon, 25 May 2
009 15:59:51 GMT..ETag: "76d61-7-4a1ac077"..Accept-Ranges:
bytes..Content-Length: 7..Connection: close..Content-Type:
text/html....*BROKEN*.
########


Thus 192.168.58.56 should have weight set to 0 (BROKEN != OK), but it
is not!!

Output from ipvsadm:

TCP x.x.x.x:7777 rr
-> 192.168.58.55:7777 Masq 1 0 0
-> 192.168.58.56:7777 Masq 1 0 0

Any idea?

Thanks

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

May 25, 2009, 10:07 AM

Post #2 of 4 (763 views)
Permalink
Re: [lvs-users] ldirectord: failed check doesn't remove a machine from the pool [In reply to]

On Mon, 2009-05-25 at 16:19 +0000, Daniel Lemay wrote:
> T 192.168.58.56:7778 -> 192.168.58.2:60760 [AP]
> HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:06:14 GMT..Server:

Spot the OK above? ldirectord is matching on that.

If you make your string something which isn't defined as a response code
in the HTTP protocol, you'll probably make it work :)

Try:

"SERVER_OK_RIGHT_NOW" for OK
"SERVER_BUSTED" for BROKEN

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


daniel.lemay at ec

May 25, 2009, 10:37 AM

Post #3 of 4 (756 views)
Permalink
Re: [lvs-users] ldirectord: failed check doesn't remove a machine from the pool [In reply to]

Hi Graeme,

You were correct. It is now working.

Thank you

Daniel

Graeme Fowler wrote:
> On Mon, 2009-05-25 at 16:19 +0000, Daniel Lemay wrote:
>
>> T 192.168.58.56:7778 -> 192.168.58.2:60760 [AP]
>> HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:06:14 GMT..Server:
>>
>
> Spot the OK above? ldirectord is matching on that.
>
> If you make your string something which isn't defined as a response code
> in the HTTP protocol, you'll probably make it work :)
>
> Try:
>
> "SERVER_OK_RIGHT_NOW" for OK
> "SERVER_BUSTED" for BROKEN
>
> Graeme
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


daniel.lemay at ec

May 26, 2009, 10:35 AM

Post #4 of 4 (748 views)
Permalink
Re: [lvs-users] ldirectord: failed check doesn't remove a machine from the pool [In reply to]

Hi Graeme,

I found that it was not because OK is an HTTP keyword that the check was
not working,
but because OK is a substring of BR*OK*EN.

Daniel

Daniel Lemay wrote:
> Hi Graeme,
>
> You were correct. It is now working.
>
> Thank you
>
> Daniel
>
> Graeme Fowler wrote:
>> On Mon, 2009-05-25 at 16:19 +0000, Daniel Lemay wrote:
>>
>>> T 192.168.58.56:7778 -> 192.168.58.2:60760 [AP]
>>> HTTP/1.1 200 OK..Date: Mon, 25 May 2009 16:06:14 GMT..Server:
>>>
>>
>> Spot the OK above? ldirectord is matching on that.
>>
>> If you make your string something which isn't defined as a response code
>> in the HTTP protocol, you'll probably make it work :)
>>
>> Try:
>>
>> "SERVER_OK_RIGHT_NOW" for OK
>> "SERVER_BUSTED" for BROKEN
>>
>> Graeme
>>
>>
>> _______________________________________________
>> Please read the documentation before posting - it's available at:
>> http://www.linuxvirtualserver.org/
>>
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.