Project

General

Profile

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

Amber Herold, 05/13/2011 09:52 AM

1 1 Neil Voss
h1. Configure web server to submit job to local cluster
2
3
h2. Option 1: Use the setup wizard and add the local cluster headnode
4
5
# Go the setup wizard: http://localhost/myamiweb/setup or http://HOST.INSTITUTE.EDU/myamiweb/setup
6 8 Amber Herold
7 1 Neil Voss
8
h2. Option 2: Manually edit the config.php and add the local cluster headnode to the config.php
9
10 6 Neil Voss
* Edit the file @/var/www/html/myamiweb/config.php@
11 5 Neil Voss
12 6 Neil Voss
* For single computer setups use localhost:<pre>
13 4 Neil Voss
$PROCESSING_HOSTS[] = array('host' => 'localhost', 'nproc' => 2);
14 1 Neil Voss
</pre>
15
16 6 Neil Voss
* If the processing headnode is not localhost:<pre>
17 4 Neil Voss
$PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE.INSTITUTE.EDU', 'nproc' => 8);
18
</pre>
19 1 Neil Voss
20 6 Neil Voss
* It can also run on more than one cluster, _this is rare_:<pre>
21 4 Neil Voss
$PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE1.INSTITUTE.EDU', 'nproc' => 8);
22
$PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE2.INSTITUTE.EDU', 'nproc' => 4);
23 1 Neil Voss
</pre>
24
25
_______
26
27 7 Amber Herold
[[Install SSH module for PHP|< Install SSH module for PHP]] | [[Testing job submission|Testing job submission >]]
28 1 Neil Voss
29
_______