LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: stupid question: can 'rcp' be a virtual service ?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: stupid question: can 'rcp' be a virtual service ?
From: Alois Treindl <alois@xxxxxxxx>
Date: Fri, 04 May 2001 08:45:30 +0200
On Thu, 3 May 2001, Joseph Mack wrote:

> Alois Treindl wrote:
> > 
> > can 'rcp' be configured as a virtual service?
> 
> I do it with rsh in Sect 5.2 in
> 
> http://www.linuxvirtualserver.org/Joseph.Mack/performance/single_realserver_performance.html
> 

Thank you, it does work!
both rsh/rcp and rlogin (I am aware of the security problems of r*
commands, but during cluster setup inside the local network they are
convenient).

I used: 
ipvsadm -A -t $VIP:login -s rr
ipvsadm -a -t $VIP:login -r $RIP1:login -m -w 1
ipchains -A forward -s $RIP1/255.255.255.255 513:513 -d
0.0.0.0/0.0.0.0 -p
6 -j MASQ                          

and
ipvsadm -A -t $VIP:login -s rr
ipvsadm -a -t $VIP:shell -r $RIP1:shell -m -w 1
ipchains -A forward -s $RIP1/255.255.255.255 514:514 -d
0.0.0.0/0.0.0.0 -p
6 -j MASQ 

With rcp, I get this transfer speed for a 200 Mbyte file
-r--r--r--   1 alois      soft       199472000 Nov  1  1995
DE404.cdrom
$ time rcp  DE404.cdrom lvs:/tmp
 
real    0m19.14s
user    0m0.06s
sys     0m4.66s    

and in the backward direction:
$ time rcp lvs:/tmp/DE404.cdrom /dev/null
 
real    0m17.03s
user    0m0.33s
sys     0m5.73s  

This is full network speed of my 100 Mhz Ethernet.
My setup is VS-NAT


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