neptune 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +4 -0
- data/doc/AppControllerClient.html +0 -11
- data/doc/CommonFunctions.html +0 -11
- data/doc/Kernel.html +0 -11
- data/doc/Object.html +79 -18
- data/doc/created.rid +5 -7
- data/doc/index.html +4 -11
- data/doc/lib/neptune_rb.html +1 -1
- data/lib/neptune.rb +40 -0
- data/samples/cicero/run_appengine_java_dfsp.rb +7 -0
- data/samples/cicero/run_appengine_mapreduce.rb +8 -0
- data/samples/cicero/run_appengine_mapreduce_with_app.rb +11 -0
- data/samples/cicero/run_appengine_python_dfsp_with_app.rb +10 -0
- data/samples/cicero/run_appengine_python_dfsp_with_two_nodes.rb +8 -0
- metadata +9 -44
- data/doc/LICENSE.html +0 -133
- data/doc/README.html +0 -201
- data/doc/lib/job_rb.html +0 -55
- data/doc/scripts/appscale/add_appserver_rb.html +0 -52
- data/doc/scripts/appscale/add_database_rb.html +0 -52
- data/doc/scripts/appscale/add_loadbalancer_rb.html +0 -52
- data/doc/scripts/appscale/add_slave_rb.html +0 -52
- data/doc/scripts/cewssa/cewssa-output.html +0 -104
- data/doc/scripts/cewssa/get_cewssa_output_rb.html +0 -52
- data/doc/scripts/cewssa/run_cewssa_rb.html +0 -52
- data/doc/scripts/cewssa/test_dfsp_rb.html +0 -52
- data/doc/scripts/dfsp/get_dfsp_output_rb.html +0 -52
- data/doc/scripts/dfsp/make_output_public_rb.html +0 -52
- data/doc/scripts/dfsp/run_dfsp_rb.html +0 -52
- data/doc/scripts/dfsp/see_acl_rb.html +0 -52
- data/doc/scripts/dfsp/test_dfsp_rb.html +0 -52
- data/doc/scripts/mapreduce/get_mapreduce_output_rb.html +0 -52
- data/doc/scripts/mapreduce/input-10.html +0 -114
- data/doc/scripts/mapreduce/input-30.html +0 -114
- data/doc/scripts/mapreduce/input-7.html +0 -104
- data/doc/scripts/mapreduce/map_rb.html +0 -56
- data/doc/scripts/mapreduce/reduce_rb.html +0 -56
- data/doc/scripts/mapreduce/run_java_mr_rb.html +0 -52
- data/doc/scripts/mapreduce/run_mapreduce_rb.html +0 -52
- data/doc/scripts/mpi/Makefile.html +0 -125
- data/doc/scripts/mpi/get_mpi_output_rb.html +0 -52
- data/doc/scripts/mpi/hw2_c.html +0 -52
- data/doc/scripts/mpi/hw2harness_c.html +0 -52
- data/doc/scripts/mpi/hw2harness_h.html +0 -52
- data/doc/scripts/mpi/run_mpi_cpi_rb.html +0 -52
- data/doc/scripts/mpi/run_mpi_powermethod_rb.html +0 -52
- data/doc/scripts/mpi/test_rb.html +0 -52
- data/doc/scripts/x10/Makefile.html +0 -106
- data/doc/scripts/x10/get_x10_output_rb.html +0 -52
- data/doc/scripts/x10/run_x10_kmeans_rb.html +0 -52
- data/doc/scripts/x10/run_x10_montypi_rb.html +0 -52
- data/doc/scripts/x10/run_x10_nqueens_rb.html +0 -52
- data/doc/scripts/x10/run_x10_powermethod_rb.html +0 -52
- data/doc/scripts/x10/run_x10_qsort_rb.html +0 -52
- data/doc/scripts/x10/test_rb.html +0 -52
data/README
CHANGED
|
@@ -66,6 +66,10 @@ Here's a link</a> to the abstract of the paper and the PDF.
|
|
|
66
66
|
|
|
67
67
|
Version History:
|
|
68
68
|
|
|
69
|
+
December 4, 2011 - 0.1.3 released, adding support for KDT (Knowledge Discovery
|
|
70
|
+
Toolkit) and Cicero, a framework for automatic task execution over Google
|
|
71
|
+
App Engine and AppScale.
|
|
72
|
+
|
|
69
73
|
November 10, 2011 - 0.1.2 released, adding unit tests and
|
|
70
74
|
refactoring all around.
|
|
71
75
|
|
|
@@ -96,17 +96,6 @@
|
|
|
96
96
|
<div id="project-metadata">
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
<div id="fileindex-section" class="section project-section">
|
|
100
|
-
<h3 class="section-header">Files</h3>
|
|
101
|
-
<ul>
|
|
102
|
-
|
|
103
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
|
104
|
-
|
|
105
|
-
<li class="file"><a href="./README.html">README</a></li>
|
|
106
|
-
|
|
107
|
-
</ul>
|
|
108
|
-
</div>
|
|
109
|
-
|
|
110
99
|
|
|
111
100
|
<div id="classindex-section" class="section project-section">
|
|
112
101
|
<h3 class="section-header">Class/Module Index
|
data/doc/CommonFunctions.html
CHANGED
|
@@ -81,17 +81,6 @@
|
|
|
81
81
|
<div id="project-metadata">
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
<div id="fileindex-section" class="section project-section">
|
|
85
|
-
<h3 class="section-header">Files</h3>
|
|
86
|
-
<ul>
|
|
87
|
-
|
|
88
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
|
89
|
-
|
|
90
|
-
<li class="file"><a href="./README.html">README</a></li>
|
|
91
|
-
|
|
92
|
-
</ul>
|
|
93
|
-
</div>
|
|
94
|
-
|
|
95
84
|
|
|
96
85
|
<div id="classindex-section" class="section project-section">
|
|
97
86
|
<h3 class="section-header">Class/Module Index
|
data/doc/Kernel.html
CHANGED
|
@@ -75,17 +75,6 @@
|
|
|
75
75
|
<div id="project-metadata">
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
<div id="fileindex-section" class="section project-section">
|
|
79
|
-
<h3 class="section-header">Files</h3>
|
|
80
|
-
<ul>
|
|
81
|
-
|
|
82
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
|
83
|
-
|
|
84
|
-
<li class="file"><a href="./README.html">README</a></li>
|
|
85
|
-
|
|
86
|
-
</ul>
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
78
|
|
|
90
79
|
<div id="classindex-section" class="section project-section">
|
|
91
80
|
<h3 class="section-header">Class/Module Index
|
data/doc/Object.html
CHANGED
|
@@ -94,6 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
<li><a href="#method-i-run_job">#run_job</a></li>
|
|
96
96
|
|
|
97
|
+
<li><a href="#method-i-upload_app_for_cicero">#upload_app_for_cicero</a></li>
|
|
98
|
+
|
|
97
99
|
<li><a href="#method-i-validate_storage_params">#validate_storage_params</a></li>
|
|
98
100
|
|
|
99
101
|
<li><a href="#method-i-wait_for_compilation_to_finish">#wait_for_compilation_to_finish</a></li>
|
|
@@ -109,17 +111,6 @@
|
|
|
109
111
|
<div id="project-metadata">
|
|
110
112
|
|
|
111
113
|
|
|
112
|
-
<div id="fileindex-section" class="section project-section">
|
|
113
|
-
<h3 class="section-header">Files</h3>
|
|
114
|
-
<ul>
|
|
115
|
-
|
|
116
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
|
117
|
-
|
|
118
|
-
<li class="file"><a href="./README.html">README</a></li>
|
|
119
|
-
|
|
120
|
-
</ul>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
114
|
|
|
124
115
|
<div id="classindex-section" class="section project-section">
|
|
125
116
|
<h3 class="section-header">Class/Module Index
|
|
@@ -242,7 +233,7 @@ indicates whether or not the compilation was successful.</p>
|
|
|
242
233
|
<div class="method-source-code"
|
|
243
234
|
id="compile_code-source">
|
|
244
235
|
<pre>
|
|
245
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
236
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 290</span>
|
|
246
237
|
def compile_code(job_data, ssh_args, shadow_ip, shell=<span class="ruby-constant">Kernel</span>.method(:`))
|
|
247
238
|
compiled_location = controller.compile_code(job_data)
|
|
248
239
|
|
|
@@ -342,7 +333,7 @@ job succeeded and if it failed, the reason for it.</p>
|
|
|
342
333
|
<div class="method-source-code"
|
|
343
334
|
id="get_input-source">
|
|
344
335
|
<pre>
|
|
345
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
336
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 236</span>
|
|
346
337
|
def get_input(job_data, ssh_args, shadow_ip, controller, file=<span class="ruby-constant">File</span>,
|
|
347
338
|
shell=<span class="ruby-constant">Kernel</span>.method(:`))
|
|
348
339
|
result = {:result => :success}
|
|
@@ -422,6 +413,15 @@ def get_job_data(params)
|
|
|
422
413
|
type = <span class="ruby-string">"mpi"</span>
|
|
423
414
|
end
|
|
424
415
|
|
|
416
|
+
<span class="ruby-comment"># kdt jobs also run as mpi jobs, but need to pass along an executable</span>
|
|
417
|
+
<span class="ruby-comment"># parameter to let mpiexec know to use python to exec it</span>
|
|
418
|
+
if type == <span class="ruby-string">"kdt"</span>
|
|
419
|
+
job_data[<span class="ruby-string">"@type"</span>] = <span class="ruby-string">"mpi"</span>
|
|
420
|
+
type = <span class="ruby-string">"mpi"</span>
|
|
421
|
+
|
|
422
|
+
job_data[<span class="ruby-string">"@executable"</span>] = <span class="ruby-string">"python"</span>
|
|
423
|
+
end
|
|
424
|
+
|
|
425
425
|
if job_data[<span class="ruby-string">"@nodes_to_use"</span>].class == <span class="ruby-constant">Hash</span>
|
|
426
426
|
job_data[<span class="ruby-string">"@nodes_to_use"</span>] = job_data[<span class="ruby-string">"@nodes_to_use"</span>].to_a.flatten
|
|
427
427
|
end
|
|
@@ -470,7 +470,7 @@ not the job completed successfully (success = no errors).</p>
|
|
|
470
470
|
<div class="method-source-code"
|
|
471
471
|
id="get_std_out_and_err-source">
|
|
472
472
|
<pre>
|
|
473
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
473
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 319</span>
|
|
474
474
|
def get_std_out_and_err(location)
|
|
475
475
|
result = {}
|
|
476
476
|
|
|
@@ -523,7 +523,7 @@ vice-versa).</p>
|
|
|
523
523
|
<div class="method-source-code"
|
|
524
524
|
id="neptune-source">
|
|
525
525
|
<pre>
|
|
526
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
526
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 408</span>
|
|
527
527
|
def neptune(params)
|
|
528
528
|
puts <span class="ruby-string">"Received a request to run a job."</span>
|
|
529
529
|
puts params[:type]
|
|
@@ -778,7 +778,7 @@ as well as information about the node to send the request to.</p>
|
|
|
778
778
|
<div class="method-source-code"
|
|
779
779
|
id="run_job-source">
|
|
780
780
|
<pre>
|
|
781
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
781
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 365</span>
|
|
782
782
|
def run_job(job_data, ssh_args, shadow_ip, secret,
|
|
783
783
|
controller=<span class="ruby-constant">AppControllerClient</span>, file=<span class="ruby-constant">File</span>)
|
|
784
784
|
controller = controller.new(shadow_ip, secret)
|
|
@@ -800,6 +800,11 @@ def run_job(job_data, ssh_args, shadow_ip, secret,
|
|
|
800
800
|
result[:acl] = controller.set_acl(job_data)
|
|
801
801
|
when <span class="ruby-string">"compile"</span>
|
|
802
802
|
result = compile_code(job_data, ssh_args, shadow_ip)
|
|
803
|
+
when <span class="ruby-string">"cicero"</span>
|
|
804
|
+
upload_app_for_cicero(job_data)
|
|
805
|
+
msg = controller.start_neptune_job(job_data)
|
|
806
|
+
result[:msg] = msg
|
|
807
|
+
result[:result] = :failure if result[:msg] !~ <span class="ruby-regexp">/job is now running\Z/</span>
|
|
803
808
|
else
|
|
804
809
|
msg = controller.start_neptune_job(job_data)
|
|
805
810
|
result[:msg] = msg
|
|
@@ -815,6 +820,62 @@ end</pre>
|
|
|
815
820
|
|
|
816
821
|
|
|
817
822
|
|
|
823
|
+
</div>
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
<div id="upload_app_for_cicero-method" class="method-detail ">
|
|
827
|
+
<a name="method-i-upload_app_for_cicero"></a>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
<div class="method-heading">
|
|
831
|
+
<span class="method-name">upload_app_for_cicero</span><span
|
|
832
|
+
class="method-args">(job_data)</span>
|
|
833
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
834
|
+
</div>
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
<div class="method-description">
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
<div class="method-source-code"
|
|
844
|
+
id="upload_app_for_cicero-source">
|
|
845
|
+
<pre>
|
|
846
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 337</span>
|
|
847
|
+
def upload_app_for_cicero(job_data)
|
|
848
|
+
if !job_data[<span class="ruby-string">"@app"</span>]
|
|
849
|
+
puts <span class="ruby-string">"No app specified, not uploading..."</span>
|
|
850
|
+
return
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
app_location = <span class="ruby-constant">File</span>.expand_path(job_data[<span class="ruby-string">"@app"</span>])
|
|
854
|
+
if !<span class="ruby-constant">File</span>.exists?(app_location)
|
|
855
|
+
abort("The app you specified, #{app_location}, does not exist." +
|
|
856
|
+
<span class="ruby-string">"Please specify one that does and try again."</span>)
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
keyname = job_data[<span class="ruby-string">"@keyname"</span>] || <span class="ruby-string">"appscale"</span>
|
|
860
|
+
if job_data[<span class="ruby-string">"@appscale_tools"</span>]
|
|
861
|
+
upload_app = <span class="ruby-constant">File</span>.expand_path(job_data[<span class="ruby-string">"@appscale_tools"</span>]) +
|
|
862
|
+
<span class="ruby-constant">File</span>::<span class="ruby-constant">SEPARATOR</span> + <span class="ruby-string">"bin"</span> + <span class="ruby-constant">File</span>::<span class="ruby-constant">SEPARATOR</span> + <span class="ruby-string">"appscale-upload-app"</span>
|
|
863
|
+
else
|
|
864
|
+
upload_app = <span class="ruby-string">"appscale-upload-app"</span>
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
puts "Uploading AppEngine app at #{app_location}"
|
|
868
|
+
upload_command = "#{upload_app} --file #{app_location} --test --keyname #{keyname}"
|
|
869
|
+
puts upload_command
|
|
870
|
+
puts `#{upload_command}`
|
|
871
|
+
end</pre>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
</div>
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
818
879
|
</div>
|
|
819
880
|
|
|
820
881
|
|
|
@@ -838,7 +899,7 @@ end</pre>
|
|
|
838
899
|
<div class="method-source-code"
|
|
839
900
|
id="validate_storage_params-source">
|
|
840
901
|
<pre>
|
|
841
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
902
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 195</span>
|
|
842
903
|
def validate_storage_params(job_data)
|
|
843
904
|
if !job_data[<span class="ruby-string">"@storage"</span>]
|
|
844
905
|
job_data[<span class="ruby-string">"@storage"</span>] = <span class="ruby-string">"appdb"</span>
|
|
@@ -908,7 +969,7 @@ location.</p>
|
|
|
908
969
|
<div class="method-source-code"
|
|
909
970
|
id="wait_for_compilation_to_finish-source">
|
|
910
971
|
<pre>
|
|
911
|
-
<span class="ruby-comment"># File lib/neptune.rb, line
|
|
972
|
+
<span class="ruby-comment"># File lib/neptune.rb, line 269</span>
|
|
912
973
|
def wait_for_compilation_to_finish(ssh_args, shadow_ip, compiled_location,
|
|
913
974
|
shell=<span class="ruby-constant">Kernel</span>.method(:`))
|
|
914
975
|
loop {
|
data/doc/created.rid
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
./README Thu, 10 Nov 2011 11:48:11 -0800
|
|
7
|
-
./bin/neptune Sun, 15 May 2011 22:52:56 -0700
|
|
1
|
+
Sun, 04 Dec 2011 11:46:34 -0800
|
|
2
|
+
bin/neptune Sun, 15 May 2011 22:52:56 -0700
|
|
3
|
+
lib/neptune.rb Sat, 03 Dec 2011 23:03:43 -0800
|
|
4
|
+
lib/app_controller_client.rb Tue, 25 Oct 2011 23:47:47 -0700
|
|
5
|
+
lib/common_functions.rb Wed, 26 Oct 2011 10:37:34 -0700
|
data/doc/index.html
CHANGED
|
@@ -27,15 +27,6 @@
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
<h2>Files</h2>
|
|
31
|
-
<ul>
|
|
32
|
-
|
|
33
|
-
<li class="file"><a href="LICENSE.html">LICENSE</a></li>
|
|
34
|
-
|
|
35
|
-
<li class="file"><a href="README.html">README</a></li>
|
|
36
|
-
|
|
37
|
-
</ul>
|
|
38
|
-
|
|
39
30
|
|
|
40
31
|
<h2 id="classes">Classes/Modules</h2>
|
|
41
32
|
<ul>
|
|
@@ -63,10 +54,10 @@
|
|
|
63
54
|
|
|
64
55
|
<li><a href="CommonFunctions.html#method-c-scp_to_shadow">::scp_to_shadow — CommonFunctions</a></li>
|
|
65
56
|
|
|
66
|
-
<li><a href="AppControllerClient.html#method-i-compile_code">#compile_code — AppControllerClient</a></li>
|
|
67
|
-
|
|
68
57
|
<li><a href="Object.html#method-i-compile_code">#compile_code — Object</a></li>
|
|
69
58
|
|
|
59
|
+
<li><a href="AppControllerClient.html#method-i-compile_code">#compile_code — AppControllerClient</a></li>
|
|
60
|
+
|
|
70
61
|
<li><a href="Object.html#method-i-do_preprocessing">#do_preprocessing — Object</a></li>
|
|
71
62
|
|
|
72
63
|
<li><a href="AppControllerClient.html#method-i-get_acl">#get_acl — AppControllerClient</a></li>
|
|
@@ -101,6 +92,8 @@
|
|
|
101
92
|
|
|
102
93
|
<li><a href="AppControllerClient.html#method-i-start_neptune_job">#start_neptune_job — AppControllerClient</a></li>
|
|
103
94
|
|
|
95
|
+
<li><a href="Object.html#method-i-upload_app_for_cicero">#upload_app_for_cicero — Object</a></li>
|
|
96
|
+
|
|
104
97
|
<li><a href="Object.html#method-i-validate_storage_params">#validate_storage_params — Object</a></li>
|
|
105
98
|
|
|
106
99
|
<li><a href="Object.html#method-i-wait_for_compilation_to_finish">#wait_for_compilation_to_finish — Object</a></li>
|
data/doc/lib/neptune_rb.html
CHANGED
data/lib/neptune.rb
CHANGED
|
@@ -166,6 +166,15 @@ def get_job_data(params)
|
|
|
166
166
|
type = "mpi"
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
# kdt jobs also run as mpi jobs, but need to pass along an executable
|
|
170
|
+
# parameter to let mpiexec know to use python to exec it
|
|
171
|
+
if type == "kdt"
|
|
172
|
+
job_data["@type"] = "mpi"
|
|
173
|
+
type = "mpi"
|
|
174
|
+
|
|
175
|
+
job_data["@executable"] = "python"
|
|
176
|
+
end
|
|
177
|
+
|
|
169
178
|
if job_data["@nodes_to_use"].class == Hash
|
|
170
179
|
job_data["@nodes_to_use"] = job_data["@nodes_to_use"].to_a.flatten
|
|
171
180
|
end
|
|
@@ -325,6 +334,32 @@ def get_std_out_and_err(location)
|
|
|
325
334
|
return result
|
|
326
335
|
end
|
|
327
336
|
|
|
337
|
+
def upload_app_for_cicero(job_data)
|
|
338
|
+
if !job_data["@app"]
|
|
339
|
+
puts "No app specified, not uploading..."
|
|
340
|
+
return
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
app_location = File.expand_path(job_data["@app"])
|
|
344
|
+
if !File.exists?(app_location)
|
|
345
|
+
abort("The app you specified, #{app_location}, does not exist." +
|
|
346
|
+
"Please specify one that does and try again.")
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
keyname = job_data["@keyname"] || "appscale"
|
|
350
|
+
if job_data["@appscale_tools"]
|
|
351
|
+
upload_app = File.expand_path(job_data["@appscale_tools"]) +
|
|
352
|
+
File::SEPARATOR + "bin" + File::SEPARATOR + "appscale-upload-app"
|
|
353
|
+
else
|
|
354
|
+
upload_app = "appscale-upload-app"
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
puts "Uploading AppEngine app at #{app_location}"
|
|
358
|
+
upload_command = "#{upload_app} --file #{app_location} --test --keyname #{keyname}"
|
|
359
|
+
puts upload_command
|
|
360
|
+
puts `#{upload_command}`
|
|
361
|
+
end
|
|
362
|
+
|
|
328
363
|
# This method actually runs the Neptune job, given information about the job
|
|
329
364
|
# as well as information about the node to send the request to.
|
|
330
365
|
def run_job(job_data, ssh_args, shadow_ip, secret,
|
|
@@ -348,6 +383,11 @@ def run_job(job_data, ssh_args, shadow_ip, secret,
|
|
|
348
383
|
result[:acl] = controller.set_acl(job_data)
|
|
349
384
|
when "compile"
|
|
350
385
|
result = compile_code(job_data, ssh_args, shadow_ip)
|
|
386
|
+
when "cicero"
|
|
387
|
+
upload_app_for_cicero(job_data)
|
|
388
|
+
msg = controller.start_neptune_job(job_data)
|
|
389
|
+
result[:msg] = msg
|
|
390
|
+
result[:result] = :failure if result[:msg] !~ /job is now running\Z/
|
|
351
391
|
else
|
|
352
392
|
msg = controller.start_neptune_job(job_data)
|
|
353
393
|
result[:msg] = msg
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
response = neptune :type => :cicero,
|
|
2
|
+
:nodes_to_use => {"cloud1" => 1},
|
|
3
|
+
:tasks => 10,
|
|
4
|
+
:function => "map",
|
|
5
|
+
:input1 => "boo1",
|
|
6
|
+
:output => "/output/mr/",
|
|
7
|
+
:app => "~/mapreduce-taskq",
|
|
8
|
+
:appscale_tools => "~/clients/tools/trunk-tools",
|
|
9
|
+
:app_name => "appscale-benchmark4"
|
|
10
|
+
|
|
11
|
+
puts response.inspect
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
response = neptune :type => :cicero,
|
|
2
|
+
:nodes_to_use => {"cloud1" => 1},
|
|
3
|
+
:tasks => 10,
|
|
4
|
+
:function => "dfsp",
|
|
5
|
+
:output => "/output/mr/",
|
|
6
|
+
:app => "~/dfsp-taskq",
|
|
7
|
+
:appscale_tools => "~/clients/tools/trunk-tools",
|
|
8
|
+
:app_name => "appscale-benchmark0"
|
|
9
|
+
|
|
10
|
+
puts response.inspect
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: neptune
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Chris Bunch
|
|
@@ -15,7 +15,7 @@ autorequire: neptune
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-12-04 00:00:00 -08:00
|
|
19
19
|
default_executable: neptune
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -30,7 +30,6 @@ extra_rdoc_files:
|
|
|
30
30
|
- LICENSE
|
|
31
31
|
files:
|
|
32
32
|
- bin/neptune
|
|
33
|
-
- doc/README.html
|
|
34
33
|
- doc/CommonFunctions.html
|
|
35
34
|
- doc/Object.html
|
|
36
35
|
- doc/js/jquery.js
|
|
@@ -38,8 +37,6 @@ files:
|
|
|
38
37
|
- doc/js/quicksearch.js
|
|
39
38
|
- doc/js/thickbox-compressed.js
|
|
40
39
|
- doc/AppControllerClient.html
|
|
41
|
-
- doc/LICENSE.html
|
|
42
|
-
- doc/lib/job_rb.html
|
|
43
40
|
- doc/lib/neptune_rb.html
|
|
44
41
|
- doc/lib/app_controller_client_rb.html
|
|
45
42
|
- doc/lib/common_functions_rb.html
|
|
@@ -65,43 +62,6 @@ files:
|
|
|
65
62
|
- doc/images/bullet_toggle_plus.png
|
|
66
63
|
- doc/images/package.png
|
|
67
64
|
- doc/images/bullet_toggle_minus.png
|
|
68
|
-
- doc/scripts/cewssa/run_cewssa_rb.html
|
|
69
|
-
- doc/scripts/cewssa/test_dfsp_rb.html
|
|
70
|
-
- doc/scripts/cewssa/get_cewssa_output_rb.html
|
|
71
|
-
- doc/scripts/cewssa/cewssa-output.html
|
|
72
|
-
- doc/scripts/dfsp/get_dfsp_output_rb.html
|
|
73
|
-
- doc/scripts/dfsp/test_dfsp_rb.html
|
|
74
|
-
- doc/scripts/dfsp/make_output_public_rb.html
|
|
75
|
-
- doc/scripts/dfsp/run_dfsp_rb.html
|
|
76
|
-
- doc/scripts/dfsp/see_acl_rb.html
|
|
77
|
-
- doc/scripts/appscale/add_slave_rb.html
|
|
78
|
-
- doc/scripts/appscale/add_appserver_rb.html
|
|
79
|
-
- doc/scripts/appscale/add_loadbalancer_rb.html
|
|
80
|
-
- doc/scripts/appscale/add_database_rb.html
|
|
81
|
-
- doc/scripts/x10/run_x10_qsort_rb.html
|
|
82
|
-
- doc/scripts/x10/run_x10_nqueens_rb.html
|
|
83
|
-
- doc/scripts/x10/Makefile.html
|
|
84
|
-
- doc/scripts/x10/run_x10_montypi_rb.html
|
|
85
|
-
- doc/scripts/x10/run_x10_powermethod_rb.html
|
|
86
|
-
- doc/scripts/x10/test_rb.html
|
|
87
|
-
- doc/scripts/x10/get_x10_output_rb.html
|
|
88
|
-
- doc/scripts/x10/run_x10_kmeans_rb.html
|
|
89
|
-
- doc/scripts/mapreduce/run_mapreduce_rb.html
|
|
90
|
-
- doc/scripts/mapreduce/run_java_mr_rb.html
|
|
91
|
-
- doc/scripts/mapreduce/input-7.html
|
|
92
|
-
- doc/scripts/mapreduce/input-30.html
|
|
93
|
-
- doc/scripts/mapreduce/get_mapreduce_output_rb.html
|
|
94
|
-
- doc/scripts/mapreduce/reduce_rb.html
|
|
95
|
-
- doc/scripts/mapreduce/input-10.html
|
|
96
|
-
- doc/scripts/mapreduce/map_rb.html
|
|
97
|
-
- doc/scripts/mpi/hw2harness_h.html
|
|
98
|
-
- doc/scripts/mpi/Makefile.html
|
|
99
|
-
- doc/scripts/mpi/hw2harness_c.html
|
|
100
|
-
- doc/scripts/mpi/get_mpi_output_rb.html
|
|
101
|
-
- doc/scripts/mpi/hw2_c.html
|
|
102
|
-
- doc/scripts/mpi/test_rb.html
|
|
103
|
-
- doc/scripts/mpi/run_mpi_powermethod_rb.html
|
|
104
|
-
- doc/scripts/mpi/run_mpi_cpi_rb.html
|
|
105
65
|
- doc/created.rid
|
|
106
66
|
- doc/Kernel.html
|
|
107
67
|
- lib/common_functions.rb
|
|
@@ -136,6 +96,11 @@ files:
|
|
|
136
96
|
- samples/go/hello/hello.go
|
|
137
97
|
- samples/go/compile_hello.rb
|
|
138
98
|
- samples/go/put_input.rb
|
|
99
|
+
- samples/cicero/run_appengine_java_dfsp.rb
|
|
100
|
+
- samples/cicero/run_appengine_mapreduce.rb
|
|
101
|
+
- samples/cicero/run_appengine_python_dfsp_with_two_nodes.rb
|
|
102
|
+
- samples/cicero/run_appengine_python_dfsp_with_app.rb
|
|
103
|
+
- samples/cicero/run_appengine_mapreduce_with_app.rb
|
|
139
104
|
- samples/r/run_hello.rb
|
|
140
105
|
- samples/r/get_hello_output.rb
|
|
141
106
|
- samples/r/hello/hello.r
|