akgunkel

 

ClusterComputing

Page history last edited by Anonymous 3 yrs ago

Cluster Computing with OpenMOSIX (Utilizing ClusterKNOPPIX 3.6)

 

 

 

Our Custom Node-mapper notes

Quick write up of instructions:

 

For the so-called master node:

 

1. Boot clusterKnoppix

2. once it's done, su into root

3. wget http://akgunkel.com/om/omtrack.tar.gz - doesn't matter what directory

4. prompt: /etc/init.d/apache start

5. prompt: /etc/init.d/mysql start

6. prompt: tar -xvzf omtrack.tar.gz -C /var/www

7. use your favorite editor to edit /var/www/omtrack/getip.py

8. change: trackerIP = "192.168.1.110 " to the ip of this machine

9. change: minutes = 5. this is the minute interval for the cron job.

10. prompt: mysql

11. at the mysql >> prompt: create database omcluster;

12. type exit

13. then from the regular prompt: mysql < /var/www/omtrack/schema.sql

14. then, go to the local machine's now running apache. localhost/omtrack

15. click om-newcluster.php .

16. type in a name and submit. (this is mainly for record keeping)

17. back at the command prompt as root: wget localhost/omtrack/getip.py

18. prompt: python getip.py deploy

 

From all other nodes, after the master is up.

 

1. Boot clusterKnoppix

2. once it's done, su into root

3. prompt: wget ipofthemasternode/omtrack/getip.py

4. prompt: python getip.py deploy

 

After all nodes show up on the master node's openMOSIXView Console:

  1. Set the run mode to run (1)
  2. Wait however many minutes for the other nodes to delete their crons.
  3. Make sure the master node has no cron. (crontab -l)

 

 

 

Test The Cluster

 

From the Manual:

 

The fastest way to test your openMosix cluster is by creating a small script with the following content.

 

awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}' &

 

I've saved it as test_mosix, now when I want to see If everything works I start op mosmon and I launch this script for a zillion times as in

 

for i in `ls /etc/` ; do ./test_mosix ; done

 

Now watch openMosix kicking in after a few seconds ...

 

 

Easier:

 

  1. wget akgunkel.com/om/omtest
  2. chmod 777 omtest
  3. ./omtest

 

Benchmarking:

 

Still need to work out how to benchmarking, see: Benchmarking Notes

Comments (0)

You don't have permission to comment on this page.