our-eel-hacks 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/our-eel-hacks/autoscaler.rb +2 -1
- metadata +7 -7
@@ -197,7 +197,8 @@ module OurEelHacks
|
|
197
197
|
def update_scaling_delay(starting_wait)
|
198
198
|
@millis_til_next_scale = scaling_frequency * @dynos
|
199
199
|
if starting_wait > millis_til_next_scale
|
200
|
-
@millis_til_next_scale
|
200
|
+
logger.debug{ "Adjusting scaling delay for cadence between #{@millis_til_next_scale.inspect} and #{starting_wait.inspect}" }
|
201
|
+
@millis_til_next_scale += rand(starting_wait - @millis_til_next_scale)
|
201
202
|
end
|
202
203
|
end
|
203
204
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: our-eel-hacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: corundum
|
16
|
-
requirement: &
|
16
|
+
requirement: &76665630 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.0.1
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *76665630
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: heroku
|
27
|
-
requirement: &
|
27
|
+
requirement: &76675340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
- 0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
|
-
version_requirements: *
|
39
|
+
version_requirements: *76675340
|
40
40
|
description: ! " Middleware for Rack and Sidekiq to scale heroku.\n\n A heroku process
|
41
41
|
knows everything it needs in order to scale itself. A little configuration, and
|
42
42
|
you're set.\n"
|
@@ -68,7 +68,7 @@ rdoc_options:
|
|
68
68
|
- --main
|
69
69
|
- doc/README
|
70
70
|
- --title
|
71
|
-
- our-eel-hacks-0.0.
|
71
|
+
- our-eel-hacks-0.0.15 RDoc
|
72
72
|
require_paths:
|
73
73
|
- lib/
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
segments:
|
81
81
|
- 0
|
82
|
-
hash:
|
82
|
+
hash: 711289331
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|