inst-jobs-autoscaling 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3f9fbfdd0d13f234e05ebc243dbe26ae16673e4
4
- data.tar.gz: 88e985211fecb32e66ac8d1c3c4c11bff309e207
3
+ metadata.gz: bc8dd7ba4037d208d291a2be9d529b6a4436c3c7
4
+ data.tar.gz: c7a8abd253467eb2701cd4393ee7500659de8732
5
5
  SHA512:
6
- metadata.gz: 11543a9b36146b72fe984410c9decb325baddf58e5eacc70447f774da575298adf5abe36034cc016e9966864e091bce15c26e25460555bd120b0db9d9e0c0ec9
7
- data.tar.gz: 18a70e446be14da423e0ecba10d6a8880ba814b485c8d6b1d86d93030c0a4c72690bf773dc9a503ccdd8bc47996ec545afcadacbab83e8806eeb16951ac335a2
6
+ metadata.gz: 9df6de93ac399adc18ab3ed51dc74eca036edffb981d8527349992bca68e99492ca9e1ea1e688de480cfb0707eed464caa1e97a3c5e78564be37e64d876d1573
7
+ data.tar.gz: 892755e7d6214b1e281499a9bc5649405c63da0001b4a4616f95b1f3549665f7181491f3d088d72dc16a7393824e0b6f553a00cbc47c88cf6ccf46d3e2049499
data/README.md CHANGED
@@ -3,9 +3,6 @@
3
3
  This [inst-jobs](https://github.com/instructure/inst-jobs) plugin enables
4
4
  autoscaling of job worker pools using AWS Autoscaling Groups.
5
5
 
6
- Using this plugin requires configuring inst-jobs to use the ParentProcess
7
- WorkQueue implementation, which is not currently the default.
8
-
9
6
  ## Installation
10
7
 
11
8
  Add this line to your application's Gemfile:
@@ -21,6 +18,20 @@ AWS ASG. This typically means creating an AMI containing your application's
21
18
  code, and then setting scaleup/scaledown actions based on either CPU or job
22
19
  queue length.
23
20
 
21
+ Using this plugin requires configuring inst-jobs to use the ParentProcess
22
+ WorkQueue implementation, which is not currently the default. Add to your
23
+ `delayed_jobs.yml` file:
24
+
25
+ ```yaml
26
+ production:
27
+ work_queue: parent_process
28
+ workers: ...
29
+ ```
30
+
31
+ If jobs aren't configured to use `parent_process` this plugin will still run,
32
+ but do nothing. This allows easily switching between work queue implementations
33
+ while `parent_process` is still experimental.
34
+
24
35
  To enable the plugin you'll need to provide the ASG name to the app via an ENV
25
36
  var or other means, and add a line in an application initializer:
26
37
 
@@ -18,7 +18,7 @@ module JobsAutoscaling
18
18
 
19
19
  def work_queue_pop(work_queue)
20
20
  unless work_queue.respond_to?(:all_workers_idle?)
21
- raise("JobsAutoscaling requires a ParentProcess work queue")
21
+ return
22
22
  end
23
23
 
24
24
  new_state = work_queue.all_workers_idle? ? IDLE : BUSY
@@ -1,3 +1,3 @@
1
1
  module JobsAutoscaling
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst-jobs-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Palmer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inst-jobs
@@ -143,3 +143,4 @@ signing_key:
143
143
  specification_version: 4
144
144
  summary: AWS ASG autoscaling for inst-jobs
145
145
  test_files: []
146
+ has_rdoc: