Vous êtes sur la page 1sur 2

A mixed cluster of different computers using CHAOS-1.

6
and clusterknoppix

Step by step procedure of creating cluster of three or more


PCs on a LAN

Software required: Clusterknoppix (bootable) and CHAOS-1.6 (bootable) .


Both these softwares are available on internet. Download the iso images of them
and then burn them separately on two different CDs

Hardware required: Three PCs (all are on LAN with or without fixed IP
address). I used one P3 with 512 MB RAM and Two P2 each of 128 MB RAM.

I am assuming that your machines will be connected through switches and there
might be one or no gateway. And you may or may not have DNS server on the
LAN.

The master is a P3 512 MB RAM. and the Drone machines are P2 128 MB RAM (02
nos)

Here is the step by step procedure.


Master:
Insert the clusterknoppix CD and boot from it. On the su prompt do the followings.
#su
# ifconfig eth0 191.254.175.99
# /etc/init.d/openmosix restart
# omdiscd -i eth0
# openmosixview &

For Drone-1
put the CHAOS-1.6 CD into the tray and boot from it.

# su
# ifconfig eth0 191.254.175.252
# tyd -f init
# tyd -m 191.254.175.99
# omdiscd -i eth0

For Drone-2
put the CHAOS-1.6 CD into the tray and boot from it.
# su
# ifconfig eth0 191.254.175.106
# tyd -f init
# tyd -m 191.254.175.99
# omdiscd -i eth0

Now go to the master and you will find that all the three nodes are visible there
(on openmosixview ) .And they are sharing loads also. The nodes will be shown in
green clolor bar.

Time for testing the super computer..

Go to any of the drones and run /bin/testapp

# /bin/testapp &
# /bin/testapp &
# /bin/testapp &

three times is sufficient to give enough load to the cluster.


and then run mosmon on the drones
# mosmon

You will find three vertical bars depicting the loads shared by all three machines.
The GUI view of openmosixview on the master will give you exact percentage of
sharing on each machines. Your super computer is working now....

If any particular machines does not show up at the beginning then go to the
master and run
# /etc/init.d/openmosix restart
# omdiscd -i eth0

This will fetch up that nagging machine now.

What more from here..?


You can setup the master PC it as an webserver. The clusterknoppix has the built-
in apache server. Once the apache is set up you can use the cluster as a powerful
webserver where load is balanced in three PCs not just one poor PC. The result is
an enormous increase in speed.

Bye Bye
S.Bera

Vous aimerez peut-être aussi