Project

General

Profile

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

Neil Voss, 05/27/2010 04:09 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 5 Neil Voss
Edit the file @/var/www/html/myamiweb/config.php@
12
13 4 Neil Voss
For single computer setups use localhost:<pre>
14
$PROCESSING_HOSTS[] = array('host' => 'localhost', 'nproc' => 2);
15 1 Neil Voss
</pre>
16
17 4 Neil Voss
If the processing headnode is not localhost:<pre>
18
$PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE.INSTITUTE.EDU', 'nproc' => 8);
19
</pre>
20 1 Neil Voss
21 4 Neil Voss
It can also run on more than one cluster, _this is rare_:<pre>
22
$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
[[Setup job submission server|< Setup job submission server]] | [[Testing job submission|Testing job submission >]]
29
30
_______