sidekiq_autoscale 0.4.0 → 0.4.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcee6270fc053eafb77ae4ed784b4eb75ac1b5744512eeb6ddbd6ce4b8bb4160
|
4
|
+
data.tar.gz: 68b8dfa7d3ec7ae97114ea3196d48592b4797bad0e7825dbda463d8bb8f5e49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab28570fd733f27c28eac6d6d276ad7d7155ec839d9fe3ced62ceb828876f8d1140dbc0263284437df3671ad67f7e33f690bc594475c44381d6e376568c06874
|
7
|
+
data.tar.gz: e368170baad9286e253ae825b5c925b6144529d333cada558d94cd17d08a1617ea2e4e91a8db48b60ea52c47ded59026fa4c6a3924454666f438c856c75c4e89
|
@@ -22,8 +22,8 @@ module SidekiqAutoscale
|
|
22
22
|
def worker_count=(val)
|
23
23
|
return if val == worker_count
|
24
24
|
|
25
|
-
SidekiqAutoscale.logger.info("[SIDEKIQ_SCALE][HEROKU_ACTION] Setting new worker count to #{val} (is currenly #{worker_count})")
|
26
25
|
@client.formation.update(@app_name, @dyno_name, quantity: val)
|
26
|
+
SidekiqAutoscale.logger.info("[SIDEKIQ_SCALE][HEROKU_ACTION] Set new worker count to #{val} (previously #{worker_count})")
|
27
27
|
rescue Excon::Errors::Error, Heroku::API::Errors::Error => e
|
28
28
|
SidekiqAutoscale.on_scaling_error(e)
|
29
29
|
end
|
@@ -26,8 +26,8 @@ module SidekiqAutoscale
|
|
26
26
|
def worker_count=(val)
|
27
27
|
return if val == worker_count
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
@resources.merge_patch(@deployment_name, { spec: { replicas: val } })
|
30
|
+
SidekiqAutoscale.logger.info("[SIDEKIQ_SCALE][KUBERNETES_ACTION] Set new worker count to #{val} (previously #{worker_count})")
|
31
31
|
rescue Excon::Errors::Error, K8s::Error, K8s::Error::Forbidden => e
|
32
32
|
SidekiqAutoscale.on_scaling_error(e)
|
33
33
|
end
|
@@ -23,8 +23,8 @@ module SidekiqAutoscale
|
|
23
23
|
::SidekiqAutoscale::Strategies::OldestJobScaling,
|
24
24
|
::SidekiqAutoscale::Strategies::LinearScaling,
|
25
25
|
::SidekiqAutoscale::Strategies::DynamicLatencyScaling
|
26
|
-
|
27
26
|
]
|
27
|
+
|
28
28
|
strat_klass_name = known_strats.map(&:to_s).find {|i| i.end_with?("#{strategy.to_s.camelize}Scaling") }
|
29
29
|
if strat_klass_name.nil?
|
30
30
|
raise ::SidekiqAutoscale::Exception.new <<~LOG
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_autoscale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Allen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -343,7 +343,7 @@ homepage: https://github.com/tractionguest/sidekiq_autoscaling
|
|
343
343
|
licenses:
|
344
344
|
- MIT
|
345
345
|
metadata: {}
|
346
|
-
post_install_message:
|
346
|
+
post_install_message:
|
347
347
|
rdoc_options: []
|
348
348
|
require_paths:
|
349
349
|
- lib
|
@@ -358,8 +358,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
358
|
- !ruby/object:Gem::Version
|
359
359
|
version: '0'
|
360
360
|
requirements: []
|
361
|
-
rubygems_version: 3.
|
362
|
-
signing_key:
|
361
|
+
rubygems_version: 3.4.10
|
362
|
+
signing_key:
|
363
363
|
specification_version: 4
|
364
364
|
summary: A simple gem to handle Sidekiq autoscaling.
|
365
365
|
test_files: []
|