LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

All connections to one realserver

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: All connections to one realserver
From: John Ziniti <jziniti@xxxxxxxxxxxxx>
Date: Thu, 12 Feb 2004 10:42:00 -0500
This question seems to be asked every couple of months, but
there has never been a clear solution posted back to the list.

I have 1 virtual server with two realservers using LVS-DR. All
traffic seems to be going to through the load balancer, but it
is all being sent to a single realserver.

$ ipvsadm -Ln Thu Feb 12 09:36:53 2004

IP Virtual Server version 1.0.9 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  134.174.249.126:80 rr persistent 10
  -> 192.168.1.146:80             Route   8      0          0
  -> 192.168.1.147:80             Route   8      0          0

$ ipvsadm -Ln --stats Thu Feb 12 09:33:01 2004

IP Virtual Server version 1.0.9 (size=65536)
Prot LocalAddress:Port Conns InPkts OutPkts InBytes -> RemoteAddress:Port TCP 134.174.249.126:80 14108 186564 0 12115380 -> 192.168.1.146:80 14107 186555 0 12114859 -> 192.168.1.147:80 1 9 0 521

If I take down httpd on that realserver, I get connection
refused in a browser.

I feel like this means that I am actually *not* connecting through
the load balancer, but I don't think  this is true because of the
stats above, and because ssh <VIP> connects to the load balancer.

Any suggestions?

TIA,
John Ziniti

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