hirefire-resource 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -9
- data/hirefire-resource.gemspec +4 -4
- data/lib/hirefire/macro/sidekiq.rb +2 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9483a65248d4c218eebfbc663e16d6a5894b623c
|
4
|
+
data.tar.gz: f1c5a0c7c206b04196d6a3974c6c59d59e92491a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c752cf3a8621dfdc24f10a86389bfc093b244743b41a8acac636c8e287051c39c9d244a8fda7770042f0a205acbdd9f582dd08ff883102faf8e9875015f035
|
7
|
+
data.tar.gz: fdbefd6e8555f33fed3ab535d0f7294321ea84aa6c3ddd3da0920a12b76385f4682287ed3273f6a35c333cfe20f6c1ce4324cdb172b60fb00e2cf3431abeb0b0
|
data/README.md
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
|
1
|
+
## [HireFire](http://hirefire.io/) - Autoscaling for your Heroku dynos
|
2
2
|
|
3
|
-
|
3
|
+
Load-based scaling, schedule-based scaling, dyno crash recovery, for [Heroku](http://heroku.com/) web- and worker dynos.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
* Celadon Cedar
|
8
|
-
* Badious Bamboo
|
9
|
-
* Argent Aspen
|
5
|
+
---
|
10
6
|
|
11
7
|
It supports practically any worker library. We provide out-of-the-box support for:
|
12
8
|
|
@@ -74,9 +70,8 @@ dj_worker: QUEUES=encode,compress bundle exec rake jobs:work
|
|
74
70
|
|
75
71
|
Now that HireFire will scale both of the these dyno types based on their individual queue sizes. To customize how they scale, log in to the HireFire web interface.
|
76
72
|
|
77
|
-
Visit the [official website](http://hirefire.io/) for more information!
|
73
|
+
Visit the [official website](http://www.hirefire.io/) for more information!
|
78
74
|
|
79
75
|
### License
|
80
76
|
|
81
77
|
hirefire-resource is released under the Apache 2.0 license. See LICENSE.
|
82
|
-
|
data/hirefire-resource.gemspec
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "hirefire-resource"
|
5
|
-
gem.version = "0.3.
|
5
|
+
gem.version = "0.3.5"
|
6
6
|
gem.platform = Gem::Platform::RUBY
|
7
7
|
gem.authors = "Michael van Rooijen"
|
8
8
|
gem.email = "michael@hirefire.io"
|
9
|
-
gem.homepage = "http://hirefire.io
|
10
|
-
gem.summary = "
|
11
|
-
gem.description = "
|
9
|
+
gem.homepage = "http://www.hirefire.io"
|
10
|
+
gem.summary = "Autoscaling for your Heroku dynos"
|
11
|
+
gem.description = "Load-based scaling, schedule-based scaling, dyno crash recovery, for web- and worker dynos."
|
12
12
|
gem.licenses = ["Apache License"]
|
13
13
|
|
14
14
|
gem.files = %x[git ls-files].split("\n")
|
@@ -36,8 +36,9 @@ module HireFire
|
|
36
36
|
memo
|
37
37
|
end
|
38
38
|
|
39
|
+
i = ::Sidekiq::VERSION >= "3.0.0" ? 2 : 1
|
39
40
|
in_progress = ::Sidekiq::Workers.new.inject(0) do |memo, job|
|
40
|
-
memo += 1 if queues.include?(job[
|
41
|
+
memo += 1 if queues.include?(job[i]["queue"]) && job[i]["run_at"] <= Time.now.to_i
|
41
42
|
memo
|
42
43
|
end
|
43
44
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hirefire-resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
13
|
+
description: Load-based scaling, schedule-based scaling, dyno crash recovery, for
|
14
|
+
web- and worker dynos.
|
15
15
|
email: michael@hirefire.io
|
16
16
|
executables:
|
17
17
|
- hirefire
|
@@ -36,7 +36,7 @@ files:
|
|
36
36
|
- lib/hirefire/middleware.rb
|
37
37
|
- lib/hirefire/railtie.rb
|
38
38
|
- lib/hirefire/resource.rb
|
39
|
-
homepage: http://hirefire.io
|
39
|
+
homepage: http://www.hirefire.io
|
40
40
|
licenses:
|
41
41
|
- Apache License
|
42
42
|
metadata: {}
|
@@ -56,9 +56,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.4.5
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
|
-
summary:
|
62
|
+
summary: Autoscaling for your Heroku dynos
|
63
63
|
test_files: []
|
64
64
|
has_rdoc:
|