Project

General

Profile

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

Amber Herold, 06/08/2010 02:43 PM

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