Project

General

Profile

Configure web server to submit job to local cluster » History » Revision 8

Revision 7 (Amber Herold, 06/08/2010 02:43 PM) → Revision 8/12 (Amber Herold, 05/13/2011 09:52 AM)

h1. Configure web server to submit job to local cluster 

 h2. Option 1: Use the setup wizard and add the local cluster headnode 

 # Go the setup wizard: http://localhost/myamiweb/setup or http://HOST.INSTITUTE.EDU/myamiweb/setup 


 
 # Step 2 
 # Profit... 

 h2. Option 2: Manually edit the config.php and add the local cluster headnode to the config.php 

 * Edit the file @/var/www/html/myamiweb/config.php@ 

 * For single computer setups use localhost:<pre> 
 $PROCESSING_HOSTS[] = array('host' => 'localhost', 'nproc' => 2); 
 </pre> 

 * If the processing headnode is not localhost:<pre> 
 $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE.INSTITUTE.EDU', 'nproc' => 8); 
 </pre> 

 * It can also run on more than one cluster, _this is rare_:<pre> 
 $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE1.INSTITUTE.EDU', 'nproc' => 8); 
 $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE2.INSTITUTE.EDU', 'nproc' => 4); 
 </pre> 

 _______ 

 [[Install SSH module for PHP|< Install SSH module for PHP]] | [[Testing job submission|Testing job submission >]] 

 _______