LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Multiple Services per destination

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Multiple Services per destination
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Mon, 20 Sep 2004 16:07:20 -0400
Matthias Krauss wrote:
> 

> trying to add this with ipvsadm results with 'Destination already exists",
> i've tried
> ipvsadm -A -t 192.168.1.5:7000 -s wrr
> ipvsadm -a -t 192.168.1.5:7000 -r 192.168.1.10:8000 -g -w 100
> ipvsadm -a -t 192.168.1.5:7000 -r 192.168.1.10:8001 -g -w 100 =>
> "Destination already exists"

What I think you're trying to do - you want realserver x.x.1.10
to be seen as two realservers.

the first problem is that you can't rewrite ports with LVS-DR.
You will have got an error on the line with the "8000" 
(if you didn't, the newer versions of LVS should give you an error)
and you will see the service forwarded to 192.168.1.10:7000 
(not 8000) in the output of `ipvsadm`. The second command (to 8001) 
is then identical to the first command, giving you the "Destination
already exists" error.

To do what you're trying to do, you could either use LVS-NAT,
or if you want to use LVS-DR, you could have two IPs on each
realserver (x.x.1.10, x.x.1.11) - they can be on the same
NIC if you like, and you can fire up each instance of the demon
to listen to the different IPs.

What this gets you I'm not sure. You could have the same effect
by doubling the weight for that realserver.

Joe
-- 
Joseph Mack PhD, High Performance Computing & Scientific Visualization
LMIT, 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>