sidekiq-heroku-scaler 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +5 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +76 -0
- data/LICENSE.txt +21 -0
- data/README.md +109 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/sidekiq-heroku-scaler.rb +5 -0
- data/lib/sidekiq-heroku-scaler/heroku/client.rb +48 -0
- data/lib/sidekiq-heroku-scaler/heroku/formation.rb +10 -0
- data/lib/sidekiq-heroku-scaler/manager.rb +43 -0
- data/lib/sidekiq-heroku-scaler/strategy/latency.rb +28 -0
- data/lib/sidekiq-heroku-scaler/version.rb +5 -0
- data/lib/sidekiq-heroku-scaler/worker.rb +48 -0
- data/sidekiq-heroku-scaler.gemspec +32 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 652123c97be79746c8c9266fb67547fc6c7878406a6dd313ed9de147473f6c93
|
4
|
+
data.tar.gz: 4e0a7e9eb222d13ba63a20ddad66675c89dffcf31dd21b5c373206628a63e6db
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 607de29a191e9bd2ece43741fc606733d0d8da6f493745da965d05f61189e5bce4eaacb8b73eb3abce482475311c5bad403147cecc2c5b4d7038353649c5bcc3
|
7
|
+
data.tar.gz: 6c82485a0013553f3f31434d0efa9e0e4a6ab28f3de08977fbf8673791361e6f2a2767367220e42a2db9adab070e5698016081deee130911d3962ac678253fdb
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sidekiq-heroku-scaler (0.1.0)
|
5
|
+
platform-api (~> 2.2)
|
6
|
+
sidekiq (~> 5.2)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.0)
|
12
|
+
connection_pool (2.2.2)
|
13
|
+
diff-lcs (1.3)
|
14
|
+
erubis (2.7.0)
|
15
|
+
excon (0.62.0)
|
16
|
+
heroics (0.0.25)
|
17
|
+
erubis (~> 2.0)
|
18
|
+
excon
|
19
|
+
moneta
|
20
|
+
multi_json (>= 1.9.2)
|
21
|
+
jaro_winkler (1.5.1)
|
22
|
+
moneta (1.0.0)
|
23
|
+
multi_json (1.13.1)
|
24
|
+
parallel (1.12.1)
|
25
|
+
parser (2.5.3.0)
|
26
|
+
ast (~> 2.4.0)
|
27
|
+
platform-api (2.2.0)
|
28
|
+
heroics (~> 0.0.25)
|
29
|
+
moneta (~> 1.0.0)
|
30
|
+
powerpack (0.1.2)
|
31
|
+
rack (2.0.6)
|
32
|
+
rack-protection (2.0.5)
|
33
|
+
rack
|
34
|
+
rainbow (3.0.0)
|
35
|
+
rake (12.3.2)
|
36
|
+
redis (4.1.0)
|
37
|
+
rspec (3.8.0)
|
38
|
+
rspec-core (~> 3.8.0)
|
39
|
+
rspec-expectations (~> 3.8.0)
|
40
|
+
rspec-mocks (~> 3.8.0)
|
41
|
+
rspec-core (3.8.0)
|
42
|
+
rspec-support (~> 3.8.0)
|
43
|
+
rspec-expectations (3.8.2)
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
+
rspec-support (~> 3.8.0)
|
46
|
+
rspec-mocks (3.8.0)
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
+
rspec-support (~> 3.8.0)
|
49
|
+
rspec-support (3.8.0)
|
50
|
+
rubocop (0.61.1)
|
51
|
+
jaro_winkler (~> 1.5.1)
|
52
|
+
parallel (~> 1.10)
|
53
|
+
parser (>= 2.5, != 2.5.1.1)
|
54
|
+
powerpack (~> 0.1)
|
55
|
+
rainbow (>= 2.2.2, < 4.0)
|
56
|
+
ruby-progressbar (~> 1.7)
|
57
|
+
unicode-display_width (~> 1.4.0)
|
58
|
+
ruby-progressbar (1.10.0)
|
59
|
+
sidekiq (5.2.3)
|
60
|
+
connection_pool (~> 2.2, >= 2.2.2)
|
61
|
+
rack-protection (>= 1.5.0)
|
62
|
+
redis (>= 3.3.5, < 5)
|
63
|
+
unicode-display_width (1.4.1)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
bundler
|
70
|
+
rake
|
71
|
+
rspec
|
72
|
+
rubocop
|
73
|
+
sidekiq-heroku-scaler!
|
74
|
+
|
75
|
+
BUNDLED WITH
|
76
|
+
1.17.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Vital Ryabchinskiy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
# SidekiqHerokuScaler
|
2
|
+
|
3
|
+
Tool to autoscale sidekiq dynos on Heroku.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'sidekiq-heroku-scaler'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install sidekiq-heroku-scaler
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
### Strategy
|
24
|
+
|
25
|
+
Create strategy instance (gem strategy based on latency):
|
26
|
+
```
|
27
|
+
scale_strategy = SidekiqHerokuScaler::Strategy::Latency.new(
|
28
|
+
min_dynos_count: 1,
|
29
|
+
max_dynos_count: 10,
|
30
|
+
max_latency: 5.minutes.to_i,
|
31
|
+
min_latency: 1.minute.to_i
|
32
|
+
)
|
33
|
+
```
|
34
|
+
or
|
35
|
+
|
36
|
+
define your own strategy:
|
37
|
+
```
|
38
|
+
class CustomStrategy
|
39
|
+
def increase?(sidekiq_worker)
|
40
|
+
# TODO
|
41
|
+
end
|
42
|
+
|
43
|
+
def decrease?(sidekiq_worker)
|
44
|
+
# TODO
|
45
|
+
end
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
methods `increase?/decrease?` are required, these methods provide logic to handle additing or removing sidekiq instance.
|
50
|
+
|
51
|
+
### Manager
|
52
|
+
|
53
|
+
To run iteration
|
54
|
+
```
|
55
|
+
SidekiqHerokuScaler::Manager.new(
|
56
|
+
heroku_app_name: HEROKU_APP_NAME,
|
57
|
+
heroku_token: HEROKU_TOKEN,
|
58
|
+
strategy: scale_strategy,
|
59
|
+
workers: SIDEKIQ_AUTOSCALE_WORKERS
|
60
|
+
).perform
|
61
|
+
```
|
62
|
+
|
63
|
+
where:
|
64
|
+
- `HEROKU_APP_NAME` - Heroku app name
|
65
|
+
- `HEROKU_TOKEN` - Heroku token
|
66
|
+
- `strategy` - scale strategy
|
67
|
+
- `workers` - array of sidekiq worker names that could be scaled
|
68
|
+
|
69
|
+
### Recurring
|
70
|
+
|
71
|
+
1) Implement rake task and use [Heroku Scheduler](https://devcenter.heroku.com/articles/scheduler)
|
72
|
+
2) To more frequently run use [Sidekiq Scheduler](https://github.com/moove-it/sidekiq-scheduler)
|
73
|
+
|
74
|
+
###### `config/sidekiq_scheduler.yml`
|
75
|
+
```
|
76
|
+
sidekiq_autoscale:
|
77
|
+
cron: '0 */5 * * * *'
|
78
|
+
class: Scheduling::SidekiqAutoscaleWorker
|
79
|
+
queue: autoscale
|
80
|
+
description: 'This job autoscale sidekiq Heroku dynos'
|
81
|
+
```
|
82
|
+
|
83
|
+
###### `Scheduling::SidekiqAutoscaleWorker`
|
84
|
+
```
|
85
|
+
module Scheduling
|
86
|
+
class SidekiqAutoscaleWorker
|
87
|
+
include Sidekiq::Worker
|
88
|
+
|
89
|
+
sidekiq_options retry: false
|
90
|
+
|
91
|
+
def perform
|
92
|
+
SidekiqHerokuScaler::Manager.new(
|
93
|
+
heroku_app_name: ENV['HEROKU_APP_NAME'],
|
94
|
+
heroku_token: ENV['HEROKU_TOKEN'],
|
95
|
+
strategy: scale_strategy,
|
96
|
+
workers: %w[worker]
|
97
|
+
).perform
|
98
|
+
end
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
## TODO
|
103
|
+
|
104
|
+
- Lack of specs
|
105
|
+
- More documentation
|
106
|
+
|
107
|
+
## License
|
108
|
+
|
109
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "sidekiq-heroku-scaler"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'platform-api'
|
4
|
+
require 'sidekiq-heroku-scaler/heroku/formation'
|
5
|
+
|
6
|
+
module SidekiqHerokuScaler
|
7
|
+
module Heroku
|
8
|
+
class Client
|
9
|
+
def initialize(heroku_app_name, heroku_token)
|
10
|
+
@heroku_app_name = heroku_app_name
|
11
|
+
@heroku_token = heroku_token
|
12
|
+
end
|
13
|
+
|
14
|
+
def formations
|
15
|
+
@formations ||= formation.list(heroku_app_name)
|
16
|
+
end
|
17
|
+
|
18
|
+
def formation_for(worker_name)
|
19
|
+
SidekiqHerokuScaler::Heroku::Formation.new(
|
20
|
+
formations.detect { |formation| formation['type'] == worker_name } || {}
|
21
|
+
)
|
22
|
+
end
|
23
|
+
|
24
|
+
def sidekiq_workers
|
25
|
+
@sidekiq_workers ||= begin
|
26
|
+
formations.select { |formation| formation['command'].match(/sidekiq/) }
|
27
|
+
.map { |formation| formation['type'] }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def update_formation(formation_id, quantity)
|
32
|
+
formation.update(heroku_app_name, formation_id, quantity: quantity)
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
attr_reader :heroku_app_name, :heroku_token
|
38
|
+
|
39
|
+
def client
|
40
|
+
@client ||= PlatformAPI.connect_oauth(heroku_token)
|
41
|
+
end
|
42
|
+
|
43
|
+
def formation
|
44
|
+
@formation ||= PlatformAPI::Formation.new(client)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'sidekiq-heroku-scaler/heroku/client'
|
4
|
+
require 'sidekiq-heroku-scaler/worker'
|
5
|
+
|
6
|
+
module SidekiqHerokuScaler
|
7
|
+
class Manager
|
8
|
+
def initialize(heroku_app_name:, heroku_token:, workers:, strategy:)
|
9
|
+
@heroku_client = SidekiqHerokuScaler::Heroku::Client.new(heroku_app_name, heroku_token)
|
10
|
+
@strategy = strategy
|
11
|
+
@workers = workers
|
12
|
+
end
|
13
|
+
|
14
|
+
def perform
|
15
|
+
autoscalable_workers.each(&method(:autoscale_one))
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
attr_reader :heroku_client, :strategy, :workers
|
21
|
+
|
22
|
+
def autoscale_one(worker_name)
|
23
|
+
formation = heroku_client.formation_for(worker_name)
|
24
|
+
return if formation.blank?
|
25
|
+
|
26
|
+
sidekiq_worker = SidekiqHerokuScaler::Worker.new(worker_name, formation)
|
27
|
+
|
28
|
+
process_formation(sidekiq_worker)
|
29
|
+
end
|
30
|
+
|
31
|
+
def process_formation(sidekiq_worker)
|
32
|
+
if strategy.increase?(sidekiq_worker)
|
33
|
+
heroku_client.update_formation(sidekiq_worker.formation_id, sidekiq_worker.quantity + 1)
|
34
|
+
elsif strategy.decrease?(sidekiq_worker)
|
35
|
+
heroku_client.update_formation(sidekiq_worker.formation_id, sidekiq_worker.quantity - 1)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def autoscalable_workers
|
40
|
+
heroku_client.sidekiq_workers & workers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SidekiqHerokuScaler
|
4
|
+
module Strategy
|
5
|
+
class Latency
|
6
|
+
def initialize(min_dynos_count:, max_dynos_count:, max_latency:, min_latency:)
|
7
|
+
@min_dynos_count = min_dynos_count
|
8
|
+
@max_dynos_count = max_dynos_count
|
9
|
+
@max_latency = max_latency
|
10
|
+
@min_latency = min_latency
|
11
|
+
end
|
12
|
+
|
13
|
+
def increase?(sidekiq_worker)
|
14
|
+
sidekiq_worker.quantity < max_dynos_count &&
|
15
|
+
sidekiq_worker.latency > max_latency &&
|
16
|
+
sidekiq_worker.queues_size > sidekiq_worker.quantity * sidekiq_worker.concurrency
|
17
|
+
end
|
18
|
+
|
19
|
+
def decrease?(sidekiq_worker)
|
20
|
+
sidekiq_worker.latency < min_latency && sidekiq_worker.quantity > min_dynos_count
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
attr_reader :min_dynos_count, :max_dynos_count, :max_latency, :min_latency
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'sidekiq'
|
4
|
+
|
5
|
+
module SidekiqHerokuScaler
|
6
|
+
class Worker
|
7
|
+
def initialize(worker_name, formation)
|
8
|
+
@worker_name = worker_name
|
9
|
+
@formation = formation
|
10
|
+
end
|
11
|
+
|
12
|
+
def concurrency
|
13
|
+
process['concurrency'] || 0
|
14
|
+
end
|
15
|
+
|
16
|
+
def formation_id
|
17
|
+
formation.id
|
18
|
+
end
|
19
|
+
|
20
|
+
def quantity
|
21
|
+
formation.quantity
|
22
|
+
end
|
23
|
+
|
24
|
+
def latency
|
25
|
+
queues.sum { |queue| Sidekiq::Queue.new(queue).latency }
|
26
|
+
end
|
27
|
+
|
28
|
+
def queues_size
|
29
|
+
queues.sum { |queue| Sidekiq::Queue.new(queue).size }
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
attr_reader :formation, :worker_name
|
35
|
+
|
36
|
+
def queues
|
37
|
+
process['queues'] || []
|
38
|
+
end
|
39
|
+
|
40
|
+
def process_set
|
41
|
+
@process_set ||= Sidekiq::ProcessSet.new
|
42
|
+
end
|
43
|
+
|
44
|
+
def process
|
45
|
+
process_set.detect { |p| p.identity.match(/\A#{worker_name}\./) } || {}
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'sidekiq-heroku-scaler/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'sidekiq-heroku-scaler'
|
9
|
+
spec.version = SidekiqHerokuScaler::VERSION
|
10
|
+
spec.authors = ['Vital Ryabchinskiy']
|
11
|
+
spec.email = ['vital.ryabchinskiy@gmail.com']
|
12
|
+
|
13
|
+
spec.summary = 'Sidekiq Heroku Scaler'
|
14
|
+
spec.description = 'Tool to scale sidekiq dynos on Heroku'
|
15
|
+
spec.homepage = 'https://github.com/vitalinfo/sidekiq-heroku-scaler'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{^(test|spec|features)/})
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler'
|
26
|
+
spec.add_development_dependency 'rake'
|
27
|
+
spec.add_development_dependency 'rspec'
|
28
|
+
spec.add_development_dependency 'rubocop'
|
29
|
+
|
30
|
+
spec.add_dependency 'platform-api', '~> 2.2'
|
31
|
+
spec.add_dependency 'sidekiq', '~> 5.2'
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sidekiq-heroku-scaler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vital Ryabchinskiy
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-12-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: platform-api
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sidekiq
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
97
|
+
description: Tool to scale sidekiq dynos on Heroku
|
98
|
+
email:
|
99
|
+
- vital.ryabchinskiy@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".rubocop.yml"
|
107
|
+
- ".travis.yml"
|
108
|
+
- Gemfile
|
109
|
+
- Gemfile.lock
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- lib/sidekiq-heroku-scaler.rb
|
116
|
+
- lib/sidekiq-heroku-scaler/heroku/client.rb
|
117
|
+
- lib/sidekiq-heroku-scaler/heroku/formation.rb
|
118
|
+
- lib/sidekiq-heroku-scaler/manager.rb
|
119
|
+
- lib/sidekiq-heroku-scaler/strategy/latency.rb
|
120
|
+
- lib/sidekiq-heroku-scaler/version.rb
|
121
|
+
- lib/sidekiq-heroku-scaler/worker.rb
|
122
|
+
- sidekiq-heroku-scaler.gemspec
|
123
|
+
homepage: https://github.com/vitalinfo/sidekiq-heroku-scaler
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.7.6
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Sidekiq Heroku Scaler
|
147
|
+
test_files: []
|