cloud-crowd 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/cloud-crowd.gemspec +6 -6
- data/config/config.example.yml +23 -10
- data/lib/cloud-crowd.rb +4 -4
- data/lib/cloud_crowd/action.rb +24 -23
- data/lib/cloud_crowd/asset_store.rb +3 -1
- data/lib/cloud_crowd/asset_store/cloudfiles_store.rb +41 -0
- data/lib/cloud_crowd/asset_store/s3_store.rb +9 -7
- data/lib/cloud_crowd/models/node_record.rb +27 -26
- data/lib/cloud_crowd/models/work_unit.rb +35 -28
- data/lib/cloud_crowd/node.rb +43 -43
- data/lib/cloud_crowd/schema.rb +7 -7
- data/lib/cloud_crowd/server.rb +35 -30
- data/public/css/admin_console.css +25 -62
- data/public/js/admin_console.js +53 -70
- data/test/acceptance/test_server.rb +14 -16
- data/test/unit/test_action.rb +17 -15
- data/views/operations_center.erb +26 -13
- metadata +94 -59
data/views/operations_center.erb
CHANGED
@@ -13,29 +13,42 @@
|
|
13
13
|
|
14
14
|
<body>
|
15
15
|
<div id="container">
|
16
|
-
|
16
|
+
|
17
17
|
<div id="header">
|
18
18
|
<div id="logo"></div>
|
19
19
|
</div>
|
20
|
-
|
20
|
+
|
21
21
|
<div id="disconnected" class="small_caps" style="display:none;">
|
22
22
|
<div class="server_error"></div>
|
23
23
|
Disconnected. Attempting to reconnect…
|
24
24
|
</div>
|
25
|
-
|
26
|
-
<div id="
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
|
26
|
+
<div id="stats">
|
27
|
+
<table width="100%">
|
28
|
+
<thead></thead>
|
29
|
+
<tbody>
|
30
|
+
<tr class="data">
|
31
|
+
<td><div id="job_count"></div></td>
|
32
|
+
<td><div id="work_unit_count"></div></td>
|
33
|
+
<td><div id="node_count"></div></td>
|
34
|
+
<td class="last"><div id="worker_count"></div></td>
|
35
|
+
</tr>
|
36
|
+
<tr class="labels">
|
37
|
+
<td>Jobs</td>
|
38
|
+
<td>Work Units</td>
|
39
|
+
<td>Nodes</td>
|
40
|
+
<td>Workers</td>
|
41
|
+
</tr>
|
42
|
+
</tbody>
|
43
|
+
</table>
|
32
44
|
</div>
|
33
|
-
|
45
|
+
|
34
46
|
<div id="sidebar">
|
35
47
|
<div id="sidebar_top" class="sidebar_back"></div>
|
36
48
|
<div id="sidebar_background"></div>
|
37
49
|
<div id="sidebar_bottom" class="sidebar_back"></div>
|
38
50
|
<div id="sidebar_header" class="small_caps">
|
51
|
+
<span id="tail_log">Check Server Log</span>
|
39
52
|
<span class="has_nodes"></span>
|
40
53
|
<span class="no_nodes">No Nodes Online…</span>
|
41
54
|
</div>
|
@@ -43,7 +56,7 @@
|
|
43
56
|
<%# Render target for nodes and workers. %>
|
44
57
|
</div>
|
45
58
|
</div>
|
46
|
-
|
59
|
+
|
47
60
|
<div id="graphs">
|
48
61
|
<div class="graph_container">
|
49
62
|
<div class="graph_title">Work Units in Queue</div>
|
@@ -63,7 +76,7 @@
|
|
63
76
|
<div id="workers_graph" class="graph"></div>
|
64
77
|
</div>
|
65
78
|
</div>
|
66
|
-
|
79
|
+
|
67
80
|
<div id="worker_info" style="display:none;">
|
68
81
|
<div id="worker_info_inner" class="small_caps">
|
69
82
|
<div id="worker_details">
|
@@ -76,7 +89,7 @@
|
|
76
89
|
</div>
|
77
90
|
</div>
|
78
91
|
</div>
|
79
|
-
|
92
|
+
|
80
93
|
</div>
|
81
94
|
</body>
|
82
95
|
</html>
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud-crowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 0.4.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Jeremy Ashkenas
|
@@ -9,119 +14,146 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-31 00:00:00 -04:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: sinatra
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
|
-
- -
|
25
|
+
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 9
|
30
|
+
version: "0.9"
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
25
33
|
- !ruby/object:Gem::Dependency
|
26
34
|
name: activerecord
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
37
|
requirements:
|
31
|
-
- -
|
38
|
+
- - ~>
|
32
39
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
40
|
+
segments:
|
41
|
+
- 2
|
42
|
+
- 3
|
43
|
+
version: "2.3"
|
44
|
+
type: :runtime
|
45
|
+
version_requirements: *id002
|
35
46
|
- !ruby/object:Gem::Dependency
|
36
47
|
name: json
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
50
|
requirements:
|
41
51
|
- - ">="
|
42
52
|
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 1
|
55
|
+
- 1
|
56
|
+
- 7
|
43
57
|
version: 1.1.7
|
44
|
-
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: *id003
|
45
60
|
- !ruby/object:Gem::Dependency
|
46
61
|
name: rest-client
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
64
|
requirements:
|
51
65
|
- - ">="
|
52
66
|
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
67
|
+
segments:
|
68
|
+
- 1
|
69
|
+
- 4
|
70
|
+
version: "1.4"
|
57
71
|
type: :runtime
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 1.10.0
|
64
|
-
version:
|
72
|
+
version_requirements: *id004
|
65
73
|
- !ruby/object:Gem::Dependency
|
66
74
|
name: thin
|
67
|
-
|
68
|
-
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
75
|
+
prerelease: false
|
76
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
70
77
|
requirements:
|
71
78
|
- - ">="
|
72
79
|
- !ruby/object:Gem::Version
|
80
|
+
segments:
|
81
|
+
- 1
|
82
|
+
- 2
|
83
|
+
- 4
|
73
84
|
version: 1.2.4
|
74
|
-
|
85
|
+
type: :runtime
|
86
|
+
version_requirements: *id005
|
75
87
|
- !ruby/object:Gem::Dependency
|
76
88
|
name: faker
|
77
|
-
|
78
|
-
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
80
91
|
requirements:
|
81
92
|
- - ">="
|
82
93
|
- !ruby/object:Gem::Version
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
- 3
|
97
|
+
- 1
|
83
98
|
version: 0.3.1
|
84
|
-
|
99
|
+
type: :development
|
100
|
+
version_requirements: *id006
|
85
101
|
- !ruby/object:Gem::Dependency
|
86
102
|
name: thoughtbot-shoulda
|
87
|
-
|
88
|
-
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
103
|
+
prerelease: false
|
104
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
90
105
|
requirements:
|
91
106
|
- - ">="
|
92
107
|
- !ruby/object:Gem::Version
|
108
|
+
segments:
|
109
|
+
- 2
|
110
|
+
- 10
|
111
|
+
- 2
|
93
112
|
version: 2.10.2
|
94
|
-
|
113
|
+
type: :development
|
114
|
+
version_requirements: *id007
|
95
115
|
- !ruby/object:Gem::Dependency
|
96
116
|
name: notahat-machinist
|
97
|
-
|
98
|
-
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
117
|
+
prerelease: false
|
118
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
100
119
|
requirements:
|
101
120
|
- - ">="
|
102
121
|
- !ruby/object:Gem::Version
|
122
|
+
segments:
|
123
|
+
- 1
|
124
|
+
- 0
|
125
|
+
- 3
|
103
126
|
version: 1.0.3
|
104
|
-
|
127
|
+
type: :development
|
128
|
+
version_requirements: *id008
|
105
129
|
- !ruby/object:Gem::Dependency
|
106
130
|
name: rack-test
|
107
|
-
|
108
|
-
|
109
|
-
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
prerelease: false
|
132
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
110
133
|
requirements:
|
111
134
|
- - ">="
|
112
135
|
- !ruby/object:Gem::Version
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
- 4
|
139
|
+
- 1
|
113
140
|
version: 0.4.1
|
114
|
-
|
141
|
+
type: :development
|
142
|
+
version_requirements: *id009
|
115
143
|
- !ruby/object:Gem::Dependency
|
116
144
|
name: mocha
|
117
|
-
|
118
|
-
|
119
|
-
version_requirements: !ruby/object:Gem::Requirement
|
145
|
+
prerelease: false
|
146
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
120
147
|
requirements:
|
121
148
|
- - ">="
|
122
149
|
- !ruby/object:Gem::Version
|
150
|
+
segments:
|
151
|
+
- 0
|
152
|
+
- 9
|
153
|
+
- 7
|
123
154
|
version: 0.9.7
|
124
|
-
|
155
|
+
type: :development
|
156
|
+
version_requirements: *id010
|
125
157
|
description: " The crowd, suddenly there where there was nothing before, is a mysterious and\n universal phenomenon. A few people may have been standing together -- five, ten\n or twelve, nor more; nothing has been announced, nothing is expected. Suddenly\n everywhere is black with people and more come streaming from all sides as though\n streets had only one direction.\n"
|
126
158
|
email: jeremy@documentcloud.org
|
127
159
|
executables:
|
@@ -146,6 +178,7 @@ files:
|
|
146
178
|
- lib/cloud_crowd/action.rb
|
147
179
|
- lib/cloud_crowd/asset_store/filesystem_store.rb
|
148
180
|
- lib/cloud_crowd/asset_store/s3_store.rb
|
181
|
+
- lib/cloud_crowd/asset_store/cloudfiles_store.rb
|
149
182
|
- lib/cloud_crowd/asset_store.rb
|
150
183
|
- lib/cloud_crowd/command_line.rb
|
151
184
|
- lib/cloud_crowd/exceptions.rb
|
@@ -219,18 +252,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
252
|
requirements:
|
220
253
|
- - ">="
|
221
254
|
- !ruby/object:Gem::Version
|
255
|
+
segments:
|
256
|
+
- 0
|
222
257
|
version: "0"
|
223
|
-
version:
|
224
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
259
|
requirements:
|
226
260
|
- - ">="
|
227
261
|
- !ruby/object:Gem::Version
|
262
|
+
segments:
|
263
|
+
- 0
|
228
264
|
version: "0"
|
229
|
-
version:
|
230
265
|
requirements: []
|
231
266
|
|
232
267
|
rubyforge_project: cloud-crowd
|
233
|
-
rubygems_version: 1.3.
|
268
|
+
rubygems_version: 1.3.6
|
234
269
|
signing_key:
|
235
270
|
specification_version: 3
|
236
271
|
summary: Parallel Processing for the Rest of Us
|