wiki:Internal/VirtualPL/IntegratedExpt

Version 10 (modified by rmahindra, 18 years ago) ( diff )

Orbit-Planet Lab Integration demo:

This demo illustrates an orbit node (acting as an AP) fetching a video stream from a remote planet lab node and feeding it to a client node. The basic steps involved in the demo are:-

→ Firstly, a key-pair has to be generated

ssh-keygen -t rsa

This will generate 2 files id_rsa and id_rsa.pub which hold the private and public keys resp.

→ Next the keys need to be transferred to the slice on the planet node. Winlab has a permenant slice orbit_pkamat.

ssh-copy-id -i ~/.ssh/id_rsa.pub orbit_pkamat@…

→ After logging into the grid console, you have to image the nodes with planetlab-biggrid.ndz (which resides in repository2:/export/orbit/image)

imageNodes [13,5],[13,7] planetlab-biggrid.ndz

Changes might be needed to the script file 'startitall.rb'. For this the nodes have to be powered up

wget -O - -q 'http://cmc:5012/cmc/on?x=13&y=5'

And then ssh the node to get access to its root

ssh root@node13-5

Then the script file can be modified accordingly.

→ The new version of the nodehandler script and the experiment script 'planetlab.rb' are to be downloaded from nodehandler-planetlabdemo.tar.gz

cd nodehandler/src/ruby ruby handler/nodeHandler.rb -k test:exp:planetlab

Changes might be needed to the script files 'nodehandler.rb' and 'planetlab.rb'.

Setting up the planet node as Apache servers:

You might need to configure Apache server for the Planet Lab nodes. This can be done as follows

1.ssh to the appropriate planet lab node from the grid console

ssh -v -l orbit_pkamat pli1.pa-3.hpl.hp.com

2.Check if httpd is already installed using the following command

rpm -q httpd

3.If not installed use yum to install it as follows

sudo yum update sudo yum -y install httpd

4.Then configure the Apache server using httpd.conf. Search for Listen. The default port would be given as 80. Change this to 8080 as port 80 cannot be used.

Listen 80

Listen 8080

The httpd.conf resides in /etc/httpd/conf/httpd.conf

5.The video file has to be copied on to the planet lab node. The scp command is used for this purpose. Supposing the video file name is inc.avi

scp inc.avi orbit_pkamat@…

6.The configure file httpd.conf has to be edited once again. Search for documentroot. This is the main user directory. Change the path to the place where the video file is located.

PSSH and GEXEC

PSSH

— Mainly for controlling large collections of nodes in the wide-area. — Has proven to be a better option for large coll of nodes like the Planet-Lab. I have contacted the developer asking for more info. — pscp,prsync,pnuke and pslurp are included in the pssh package.

GEXEC

— Faster — GEXEC operates by building an n-ary tree of TCP sockets and threads between gexec daemons and propagating control information up and down the tree. — By using hierarchical control, GEXEC distributes both the work and resource usage associated with massive amounts of parallelism across multiple

nodes, thereby eliminating problems associated with single node resource limits (e.g., limits on the number of file descriptors on front-end nodes)

Note: See TracWiki for help on using the wiki.