rails-autoscale-core 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +10 -1
- data/lib/rails_autoscale/config.rb +4 -2
- data/lib/rails_autoscale/request_middleware.rb +2 -2
- data/lib/rails_autoscale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f99603cfd35f701404cbfa545fe57c3bcb7fbf3ff8704fd3b6f2420630c746
|
4
|
+
data.tar.gz: 32be56ecbf6f42ca5b46840b52879dacb7b9d6d98321c101f5c659f03f671650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8772831925e066e41995d1d50ddd5815aa299d91aa66b828a93855cf30fa7d95c8571e1ee57475af7772cf898c7963846d0f9e380533c0b1e4bd65a679c6f7fb
|
7
|
+
data.tar.gz: cb01fa90491ca125c5d007a1079542a715e33fcb26cee57d84ad4028ee946bf27ab5d2d761bfd881c2b49ccd8d3f48ab29fec6b373491dde208c0dd7cb75e7bb
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails-autoscale-core (1.0.
|
4
|
+
rails-autoscale-core (1.0.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -10,10 +10,18 @@ GEM
|
|
10
10
|
public_suffix (>= 2.0.2, < 6.0)
|
11
11
|
crack (0.4.5)
|
12
12
|
rexml
|
13
|
+
debug (1.4.0)
|
14
|
+
irb (>= 1.3.6)
|
15
|
+
reline (>= 0.2.7)
|
13
16
|
hashdiff (1.0.1)
|
17
|
+
io-console (0.5.11)
|
18
|
+
irb (1.4.1)
|
19
|
+
reline (>= 0.3.0)
|
14
20
|
minitest (5.15.0)
|
15
21
|
public_suffix (5.0.0)
|
16
22
|
rake (13.0.6)
|
23
|
+
reline (0.3.1)
|
24
|
+
io-console (~> 0.5)
|
17
25
|
rexml (3.2.5)
|
18
26
|
webmock (3.18.1)
|
19
27
|
addressable (>= 2.8.0)
|
@@ -27,6 +35,7 @@ PLATFORMS
|
|
27
35
|
x86_64-linux
|
28
36
|
|
29
37
|
DEPENDENCIES
|
38
|
+
debug
|
30
39
|
minitest
|
31
40
|
rails-autoscale-core!
|
32
41
|
rake (>= 12.3.3)
|
@@ -31,10 +31,12 @@ module RailsAutoscale
|
|
31
31
|
|
32
32
|
def reset
|
33
33
|
@enabled = true
|
34
|
-
@max_queues = 20
|
35
34
|
@queues = []
|
36
35
|
@queue_filter = DEFAULT_QUEUE_FILTER
|
37
|
-
|
36
|
+
|
37
|
+
# Support for deprecated legacy env var configs.
|
38
|
+
@max_queues = (ENV["RAILS_AUTOSCALE_MAX_QUEUES"] || 20).to_i
|
39
|
+
@track_busy_jobs = ENV["RAILS_AUTOSCALE_LONG_JOBS"] == "true"
|
38
40
|
end
|
39
41
|
|
40
42
|
def as_json
|
@@ -27,11 +27,11 @@ module RailsAutoscale
|
|
27
27
|
store = MetricsStore.instance
|
28
28
|
|
29
29
|
# NOTE: Expose queue time to the app
|
30
|
-
env["
|
30
|
+
env["rails_autoscale.queue_time"] = queue_time
|
31
31
|
store.push :qt, queue_time
|
32
32
|
|
33
33
|
unless network_time.zero?
|
34
|
-
env["
|
34
|
+
env["rails_autoscale.network_time"] = network_time
|
35
35
|
store.push :nt, network_time
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-autoscale-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam McCrea
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|