Configure web server to submit job to local cluster » History » Version 4
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 | 4 | Neil Voss | For single computer setups use localhost:<pre> |
12 | $PROCESSING_HOSTS[] = array('host' => 'localhost', 'nproc' => 2); |
||
13 | 1 | Neil Voss | </pre> |
14 | |||
15 | 4 | Neil Voss | If the processing headnode is not localhost:<pre> |
16 | $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE.INSTITUTE.EDU', 'nproc' => 8); |
||
17 | </pre> |
||
18 | 1 | Neil Voss | |
19 | 4 | Neil Voss | It can also run on more than one cluster, _this is rare_:<pre> |
20 | $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE1.INSTITUTE.EDU', 'nproc' => 8); |
||
21 | $PROCESSING_HOSTS[] = array('host' => 'LOCAL_CLUSTER_HEADNODE2.INSTITUTE.EDU', 'nproc' => 4); |
||
22 | 1 | Neil Voss | </pre> |
23 | |||
24 | _______ |
||
25 | |||
26 | [[Setup job submission server|< Setup job submission server]] | [[Testing job submission|Testing job submission >]] |
||
27 | |||
28 | _______ |