mobilize-base 1.0.93 → 1.0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +35 -24
- data/lib/mobilize-base/version.rb +1 -1
- data/lib/samples/gdrive.yml +25 -18
- data/lib/samples/gridfs.yml +1 -0
- data/lib/samples/gsheet.yml +1 -0
- data/lib/samples/jobtracker.yml +4 -3
- data/lib/samples/resque.yml +3 -3
- metadata +3 -3
data/README.md
CHANGED
@@ -175,36 +175,43 @@ reading/writing, which is called a gdrive_slot.__
|
|
175
175
|
Sample gdrive.yml:
|
176
176
|
|
177
177
|
``` yml
|
178
|
+
---
|
178
179
|
development:
|
179
|
-
domain:
|
180
|
+
domain: host.com
|
180
181
|
owner:
|
181
|
-
name:
|
182
|
-
pw:
|
182
|
+
name: owner_development
|
183
|
+
pw: google_drive_password
|
183
184
|
admins:
|
184
|
-
-
|
185
|
+
- name: admin
|
185
186
|
workers:
|
186
|
-
-
|
187
|
-
|
187
|
+
- name: worker_development001
|
188
|
+
pw: worker001_google_drive_password
|
189
|
+
- name: worker_development002,
|
190
|
+
pw: worker002_google_drive_password
|
188
191
|
test:
|
189
|
-
domain:
|
192
|
+
domain: host.com
|
190
193
|
owner:
|
191
|
-
name:
|
192
|
-
pw:
|
194
|
+
name: owner_test
|
195
|
+
pw: google_drive_password
|
193
196
|
admins:
|
194
|
-
-
|
197
|
+
- name: admin
|
195
198
|
workers:
|
196
|
-
-
|
197
|
-
|
199
|
+
- name: worker_test001
|
200
|
+
pw: worker001_google_drive_password
|
201
|
+
- name: worker_test002
|
202
|
+
pw: worker002_google_drive_password
|
198
203
|
production:
|
199
|
-
domain:
|
204
|
+
domain: host.com
|
200
205
|
owner:
|
201
|
-
name:
|
202
|
-
pw:
|
206
|
+
name: owner_production
|
207
|
+
pw: google_drive_password
|
203
208
|
admins:
|
204
|
-
-
|
209
|
+
- name: admin
|
205
210
|
workers:
|
206
|
-
-
|
207
|
-
|
211
|
+
- name: worker_production001
|
212
|
+
pw: worker001_google_drive_password
|
213
|
+
- name: worker_production002
|
214
|
+
pw: worker002_google_drive_password
|
208
215
|
```
|
209
216
|
|
210
217
|
<a name='section_Configure_Jobtracker'></a>
|
@@ -223,6 +230,7 @@ To this end, it needs these parameters, for which there is a sample
|
|
223
230
|
below and in the [lib/samples][git_samples] folder:
|
224
231
|
|
225
232
|
``` yml
|
233
|
+
---
|
226
234
|
development:
|
227
235
|
cycle_freq: 10 #time between Jobtracker sweeps
|
228
236
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -230,7 +238,7 @@ development:
|
|
230
238
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
231
239
|
extensions: [] #additional Mobilize modules to load workers with
|
232
240
|
admins: #emails to send notifications to
|
233
|
-
-
|
241
|
+
- email: admin@host.com
|
234
242
|
test:
|
235
243
|
cycle_freq: 10 #time between Jobtracker sweeps
|
236
244
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -238,7 +246,7 @@ test:
|
|
238
246
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
239
247
|
extensions: [] #additional Mobilize modules to load workers with
|
240
248
|
admins: #emails to send notifications to
|
241
|
-
-
|
249
|
+
- email: admin@host.com
|
242
250
|
production:
|
243
251
|
cycle_freq: 10 #time between Jobtracker sweeps
|
244
252
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -246,7 +254,7 @@ production:
|
|
246
254
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
247
255
|
extensions: [] #additional Mobilize modules to load workers with
|
248
256
|
admins: #emails to send notifications to
|
249
|
-
-
|
257
|
+
- email: admin@host.com
|
250
258
|
```
|
251
259
|
|
252
260
|
<a name='section_Configure_Resque'></a>
|
@@ -266,18 +274,19 @@ production, but feel free to adjust depending on your hardware.
|
|
266
274
|
* web_port - this specifies the port under which resque-web operates
|
267
275
|
|
268
276
|
``` yml
|
277
|
+
---
|
269
278
|
development:
|
270
|
-
queue_name:
|
279
|
+
queue_name: mobilize
|
271
280
|
max_workers: 4
|
272
281
|
redis_port: 6379
|
273
282
|
web_port: 8282
|
274
283
|
test:
|
275
|
-
queue_name:
|
284
|
+
queue_name: mobilize
|
276
285
|
max_workers: 4
|
277
286
|
redis_port: 9736
|
278
287
|
web_port: 8282
|
279
288
|
production:
|
280
|
-
queue_name:
|
289
|
+
queue_name: mobilize
|
281
290
|
max_workers: 36
|
282
291
|
redis_port: 6379
|
283
292
|
web_port: 8282
|
@@ -312,6 +321,7 @@ restore Runners from cache if necessary.
|
|
312
321
|
allow. If you try to write more than this, an exception will be thrown.
|
313
322
|
|
314
323
|
``` yml
|
324
|
+
---
|
315
325
|
development:
|
316
326
|
max_versions: 10 #number of versions of cache to keep in gridfs
|
317
327
|
max_compressed_write_size: 1000000000 #~1GB
|
@@ -334,6 +344,7 @@ It needs the below parameters, which can be found in the [lib/samples][git_sampl
|
|
334
344
|
You shouldn't need to change anything in this file.
|
335
345
|
|
336
346
|
``` yml
|
347
|
+
---
|
337
348
|
development:
|
338
349
|
sessions:
|
339
350
|
default:
|
data/lib/samples/gdrive.yml
CHANGED
@@ -1,30 +1,37 @@
|
|
1
|
+
---
|
1
2
|
development:
|
2
|
-
domain:
|
3
|
+
domain: host.com
|
3
4
|
owner:
|
4
|
-
name:
|
5
|
-
pw:
|
5
|
+
name: owner_development
|
6
|
+
pw: google_drive_password
|
6
7
|
admins:
|
7
|
-
-
|
8
|
+
- name: admin
|
8
9
|
workers:
|
9
|
-
-
|
10
|
-
|
10
|
+
- name: worker_development001
|
11
|
+
pw: worker001_google_drive_password
|
12
|
+
- name: worker_development002,
|
13
|
+
pw: worker002_google_drive_password
|
11
14
|
test:
|
12
|
-
domain:
|
15
|
+
domain: host.com
|
13
16
|
owner:
|
14
|
-
name:
|
15
|
-
pw:
|
17
|
+
name: owner_test
|
18
|
+
pw: google_drive_password
|
16
19
|
admins:
|
17
|
-
-
|
20
|
+
- name: admin
|
18
21
|
workers:
|
19
|
-
-
|
20
|
-
|
22
|
+
- name: worker_test001
|
23
|
+
pw: worker001_google_drive_password
|
24
|
+
- name: worker_test002
|
25
|
+
pw: worker002_google_drive_password
|
21
26
|
production:
|
22
|
-
domain:
|
27
|
+
domain: host.com
|
23
28
|
owner:
|
24
|
-
name:
|
25
|
-
pw:
|
29
|
+
name: owner_production
|
30
|
+
pw: google_drive_password
|
26
31
|
admins:
|
27
|
-
-
|
32
|
+
- name: admin
|
28
33
|
workers:
|
29
|
-
-
|
30
|
-
|
34
|
+
- name: worker_production001
|
35
|
+
pw: worker001_google_drive_password
|
36
|
+
- name: worker_production002
|
37
|
+
pw: worker002_google_drive_password
|
data/lib/samples/gridfs.yml
CHANGED
data/lib/samples/gsheet.yml
CHANGED
data/lib/samples/jobtracker.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
development:
|
2
3
|
cycle_freq: 10 #time between Jobtracker sweeps
|
3
4
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -5,7 +6,7 @@ development:
|
|
5
6
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
6
7
|
extensions: [] #additional Mobilize modules to load workers with
|
7
8
|
admins: #emails to send notifications to
|
8
|
-
-
|
9
|
+
- email: admin@host.com
|
9
10
|
test:
|
10
11
|
cycle_freq: 10 #time between Jobtracker sweeps
|
11
12
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -13,7 +14,7 @@ test:
|
|
13
14
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
14
15
|
extensions: [] #additional Mobilize modules to load workers with
|
15
16
|
admins: #emails to send notifications to
|
16
|
-
-
|
17
|
+
- email: admin@host.com
|
17
18
|
production:
|
18
19
|
cycle_freq: 10 #time between Jobtracker sweeps
|
19
20
|
notification_freq: 3600 #1 hour between failure/timeout notifications
|
@@ -21,4 +22,4 @@ production:
|
|
21
22
|
max_run_time: 14400 # if a job runs for 4h+, notification will be sent
|
22
23
|
extensions: [] #additional Mobilize modules to load workers with
|
23
24
|
admins: #emails to send notifications to
|
24
|
-
-
|
25
|
+
- email: admin@host.com
|
data/lib/samples/resque.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
development:
|
2
|
-
queue_name:
|
2
|
+
queue_name: mobilize
|
3
3
|
max_workers: 4
|
4
4
|
redis_port: 6379
|
5
5
|
test:
|
6
|
-
queue_name:
|
6
|
+
queue_name: mobilize
|
7
7
|
max_workers: 4
|
8
8
|
redis_port: 9736
|
9
9
|
production:
|
10
|
-
queue_name:
|
10
|
+
queue_name: mobilize
|
11
11
|
max_workers: 36
|
12
12
|
redis_port: 6379
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobilize-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.94
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: '0'
|
239
239
|
segments:
|
240
240
|
- 0
|
241
|
-
hash:
|
241
|
+
hash: -2093825275385186120
|
242
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
243
|
none: false
|
244
244
|
requirements:
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
segments:
|
249
249
|
- 0
|
250
|
-
hash:
|
250
|
+
hash: -2093825275385186120
|
251
251
|
requirements: []
|
252
252
|
rubyforge_project: mobilize-base
|
253
253
|
rubygems_version: 1.8.24
|