unicorn-autoscaling 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unicorn/auto_scaling/http_server.rb +0 -4
- data/lib/unicorn/auto_scaling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8d1e89eb38c00c145d7b7948ee12f8498efde8
|
4
|
+
data.tar.gz: ad5b780e21c8ee5c8a2f0ffbba9eedf7ba524e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63af7f28b2f74d81f9ac33f7586e62c439f68926257bea580141d2fd3e884d5df64df199778cd88a1f9e5e6fc592974d39c6f5c103b3b54c939b2f185c0fe7bd
|
7
|
+
data.tar.gz: fdca0d04df52edb8ce4807b3158f4812b9ce1a2ad2d3682f455910a4892825557bbd678d7b9cf7389a6eed42b478ea93e2350d2e9e8e02f601c965cb12775774
|
@@ -28,16 +28,12 @@ module Unicorn
|
|
28
28
|
logger.info("Auto scaling: UP")
|
29
29
|
|
30
30
|
self.worker_processes += 1
|
31
|
-
else
|
32
|
-
logger.warn('Auto scaling: Unable to scale up since maximum number of workers already reached!')
|
33
31
|
end
|
34
32
|
elsif @_autoscale_raindrop[RAINDROP_OFFSET] == DECREMENT
|
35
33
|
if self.worker_processes > self.autoscale_min_workers
|
36
34
|
logger.info('Auto scaling: DOWN')
|
37
35
|
|
38
36
|
self.worker_processes -= 1
|
39
|
-
else
|
40
|
-
logger.warn('Auto scaling: Unable to scale down since minimum number of workers already reached!')
|
41
37
|
end
|
42
38
|
end
|
43
39
|
|