[Swift-commit] r6887 - SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Mon Aug 19 15:24:36 CDT 2013
Author: wozniak
Date: 2013-08-19 15:24:36 -0500 (Mon, 19 Aug 2013)
New Revision: 6887
Added:
SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/About.txt
SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/chirp_service.sh
SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/test-chirp.swift
Log:
Initial tests for MCS
Added: SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/About.txt
===================================================================
--- SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/About.txt (rev 0)
+++ SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/About.txt 2013-08-19 20:24:36 UTC (rev 6887)
@@ -0,0 +1,22 @@
+
+Simple test for chirp_server startup/shutdown as controlled by
+Swift/T TURBINE_WORKER_SERVICE.
+
+Usage on MCS compute hosts:
+
+Create your MPICH hosts.txt file
+
+Create chirp root directories for each host's chirp server in:
+~/cr_${HOST}
+
+Set permissive ACLs
+
+Set: export TURBINE_WORKER_SERVICE="chirp_service.sh"
+
+Run:
+
+stc test-chirp.swift
+turbine -l -f hosts.txt -n 4 test-chirp.tcl
+
+The log shows that the servers are brought up and shut down.
+
Added: SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/chirp_service.sh
===================================================================
--- SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/chirp_service.sh (rev 0)
+++ SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/chirp_service.sh 2013-08-19 20:24:36 UTC (rev 6887)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+trap "echo SCRIPT CAUGHT TERM" TERM
+
+HOST=$( hostname )
+echo HOST: ${HOST}
+
+chirp_server -p 9080 -r ${HOME}/cr_${HOST} &
+JOB=${!}
+
+wait
+kill ${JOB}
+
+exit 0
Property changes on: SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/chirp_service.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/test-chirp.swift
===================================================================
--- SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/test-chirp.swift (rev 0)
+++ SwiftApps/Swift-MapRed/swift-t-simple/startup-shutdown/test-chirp.swift 2013-08-19 20:24:36 UTC (rev 6887)
@@ -0,0 +1,10 @@
+
+import io;
+import sys;
+
+main
+{
+ printf("Hello");
+ // Give the chirp server some time to start up
+ sleep(2);
+}
More information about the Swift-commit
mailing list