LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: All connections to one realserver

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: All connections to one realserver
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Thu, 12 Feb 2004 11:49:00 -0500
John Ziniti wrote:
> 
> 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)
                                        ^^^^^
this is kinda large. The default in 1.0.10 is 4096. Did you change this?

> 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 1211538  
>   -> 192.168.1.146:80                14107   186555        0 12114859
>   -> 192.168.1.147:80                    1        9        0      521

wierd

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

as you would expect, since you've told ipvsadm that there will be something
listening on RIP:80
 
> 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,

correct

> and because ssh <VIP> connects to the load balancer.

this just proves that sshd is listening on the VIP, which has nothing
to do with the LVS

Joe
 
-- 
Joseph Mack PhD, High Performance Computing & Scientific Visualization
SAIC, Supporting the EPA Research Triangle Park, NC 919-541-0007
Federal Contact - John B. Smith 919-541-1087 - smith.johnb@xxxxxxx
<Prev in Thread] Current Thread [Next in Thread>