[Linux-cluster] Problem with loadbalancer

Huesser Peter peter.huesser at psi.ch
Sat Sep 23 22:19:59 UTC 2006



I just started learning how to do loadbalancing using LVS and piranha.
As an example I wanted to have a loadbalancer running in front of one
webserver (testing). I want to use direct routing. The IP of the
loadbalancer is e.g. the one of the webserver is
(web01) and the VIP is Here is the lvs.cf file I created
with the aid of piranha_gui:


serial_no = 67

primary =

service = lvs

backup_active = 0

backup =

heartbeat = 1

heartbeat_port = 539

keepalive = 6

deadtime = 18

network = direct

debug_level = NONE

monitor_links = 0

virtual webserver {

     active = 1

     address = eth0:1

     vip_nmask =

     port = 80

     send = "GET / HTTP/1.0rnrn"

     expect = "HTTP"

     use_regex = 0

     load_monitor = ruptime

     scheduler = wlc

     protocol = tcp

     timeout = 6

     reentry = 15

     quiesce_server = 1

     server web01 {

         address =

         active = 1

         weight = 1




-          The webservice on web01 is running correctly.

-          I can ping the VIP

-          The output of "/sbin/ip addr" looks fine: the interface eth0
has the rigth secondary IP.

-          If I run "tcpdump host web01" I see that there is some
communication (eg a "GET / HTTP/1.0") between the loadbalancer and

-          The output of "/sbin/sysctl net.ipv4.ip_forward" is
"net.ipv4.ip_forward = 1".


But if I try to connect to the VIP on port 80 I get a "connection
refused". Something is wrong but what? In the /var/log/messages I have a
lot of the following lines:


Sep 24 00:09:35 loadbalancer nanny[3925]: READ to timed

Sep 24 00:09:47 loadbalancer nanny[3925]: READ to timed


Some idea where I have to look for to solve the problem?


By the way: how can I increase the debuglevel? As far as I have seen it
is not possible with GUI.


Thanks' in advance





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20060924/1b10c4ed/attachment.htm>

More information about the Linux-cluster mailing list