Project

General

Profile

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

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