[Swift-commit] r6713 - in SwiftTutorials/ATPESC_2013-08-06: . scripts

yadunandb at ci.uchicago.edu yadunandb at ci.uchicago.edu
Fri Aug 2 13:18:32 CDT 2013


Author: yadunandb
Date: 2013-08-02 13:18:32 -0500 (Fri, 02 Aug 2013)
New Revision: 6713

Added:
   SwiftTutorials/ATPESC_2013-08-06/scripts/
   SwiftTutorials/ATPESC_2013-08-06/scripts/start_coaster_workers.sh
Log:

Commiting initial automation script for starting coaster-service,
creating ssh-tunnels and starting worker on remote system



Added: SwiftTutorials/ATPESC_2013-08-06/scripts/start_coaster_workers.sh
===================================================================
--- SwiftTutorials/ATPESC_2013-08-06/scripts/start_coaster_workers.sh	                        (rev 0)
+++ SwiftTutorials/ATPESC_2013-08-06/scripts/start_coaster_workers.sh	2013-08-02 18:18:32 UTC (rev 6713)
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+######
+#start_coaster_workers.sh
+#
+#This script will start a coaster service on Tukey. It will then create 
+#reverse ssh tunnel from Vesta to Tukey and start a worker on the vesta 
+#login node.
+######
+
+LPORT_F=local_port
+SPORT_F=service_port
+coaster-service -local -passive -nosec -localportfile $LPORT_F -portfile $SPORT_F > coaster-log 2>&1 &
+
+echo "Starting a reverse tunnel ...in 5 seconds"
+sleep 5
+LOCAL_PORT=$(cat $LPORT_F)
+SERV_PORT=$(cat $SPORT_F)
+
+#reverse tunnel
+ssh -f -n -N vestalac1.pub.alcf.anl.gov  \
+    -R $LOCAL_PORT:login1.tukey.pub.alcf.anl.gov:$LOCAL_PORT
+
+WORKER_STRING="./worker.pl http://localhost:$LOCAL_PORT 1 ."
+echo "Worker string : $WORKER_STRING"
+
+echo "ssh -f vestalac1.pub.alcf.anl.gov ./worker.pl http://localhost:$LOCAL_PORT 1 . &"
+
+ssh -f vestalac1.pub.alcf.anl.gov \
+    "./worker.pl http://localhost:$LOCAL_PORT 1 . &"
+
+cat <<EOF > tmp
+<config>
+  <pool handle="persistent-coasters">
+    <execution provider="coaster-persistent"
+               url="http://127.0.0.1:$SERV_PORT"
+               jobmanager="local:local"/>
+    <profile namespace="globus" key="workerManager">passive</profile>
+    <profile namespace="globus" key="jobsPerNode">4</profile>
+    <profile key="jobThrottle" namespace="karajan">100</profile>
+    <profile namespace="karajan" key="initialScore">10000</profile>
+    <filesystem provider="local" url="none" />
+    <workdirectory>/home/$USER/swiftwork</workdirectory>
+  </pool>
+</config>
+EOF
+
+cp sites.xml sites.xml.bak
+mv tmp sites.xml
+
+exit 0;
+
+
+
+
+


Property changes on: SwiftTutorials/ATPESC_2013-08-06/scripts/start_coaster_workers.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Swift-commit mailing list