LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] ldirectord http monitoring

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] ldirectord http monitoring
From: Daniel Lemay <daniel.lemay@xxxxxxxx>
Date: Tue, 19 May 2009 19:00:44 +0000
Hi,

I have a service like the following:

virtual=x.x.x.x:7777
   real=192.168.58.1:7777 masq
   real=192.168.58.2:7777 masq
   service=http
   request="index.html"
   receive="Test page"
   scheduler=rr
   protocol=tcp


The url I want to monitor is: http://example1:7777/index.html

The following wget works: wget http://example1.com:77777/index.html,
but http://example1:7777/index.html  and 
http://192.168.58.1:7777/index.html doesn't (the address is resolved, 
but the server (oracle stack)) doesn't return the page (Bad request).


In my /etc/hosts I have the following line:
192.168.58.1 exemple1.com example1

I suppose the Oracle stack is "badly configured" (only works with FQDN) 
but I have no control on this.

My questions:

1) Is ldirectord creating the url with the IP or it gets the name in 
/etc/hosts? I supposed the IP since it doesn't work and the FQDN is the 
first in my /etc/hosts file.

2) Is there a way for me to "force" ldirectord to used the FQDN in the url?

Daniel

Thanks



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

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

<Prev in Thread] Current Thread [Next in Thread>