unicorn-worker-killer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +11 -10
- data/README.md +2 -2
- data/VERSION +1 -1
- data/lib/unicorn/worker_killer.rb +2 -2
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,19 +1,20 @@
|
|
1
|
-
Release 0.
|
1
|
+
Release 0.3.1 - 2013/01/13
|
2
|
+
* fix for ruby 1.9.2
|
2
3
|
|
3
|
-
|
4
|
+
Release 0.3.0 - 2012/12/31
|
5
|
+
* fix for 'preload_app true'
|
4
6
|
|
5
|
-
Release 0.2.
|
7
|
+
Release 0.2.1 - 2012/12/10
|
8
|
+
* fix critical namespace error, introduced at the previous version
|
6
9
|
|
7
|
-
|
10
|
+
Release 0.2.0 - 2012/11/22
|
11
|
+
* change namespace to Unicorn::WorkerKiller from UnicornWorkerKiller
|
8
12
|
|
9
13
|
Release 0.1.2 - 2012/11/17
|
10
|
-
|
11
|
-
* Change unicorn version dependency to '~> 4'
|
14
|
+
* change unicorn version dependency to '~> 4'
|
12
15
|
|
13
16
|
Release 0.1.1 - 2012/11/17
|
14
|
-
|
15
|
-
* Fix homepage
|
17
|
+
* fix homepage
|
16
18
|
|
17
19
|
Release 0.1 - 2012/11/17
|
18
|
-
|
19
|
-
* First release
|
20
|
+
* first release
|
data/README.md
CHANGED
@@ -18,10 +18,10 @@ Add these lines to your `config.ru`.
|
|
18
18
|
require 'unicorn/worker_killer'
|
19
19
|
|
20
20
|
# Max requests per worker
|
21
|
-
use Unicorn::WorkerKiller::MaxRequests,
|
21
|
+
use Unicorn::WorkerKiller::MaxRequests, 3072, 4096
|
22
22
|
|
23
23
|
# Max memory size (RSS) per worker
|
24
|
-
use Unicorn::WorkerKiller::Oom, (
|
24
|
+
use Unicorn::WorkerKiller::Oom, (192*(1024**2)), (256*(1024**2))
|
25
25
|
|
26
26
|
This gem provides two modules.
|
27
27
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -41,7 +41,7 @@ module Unicorn::WorkerKiller
|
|
41
41
|
|
42
42
|
def process_client(client)
|
43
43
|
@_worker_process_start ||= Time.now
|
44
|
-
@_worker_memory_limit ||= Random.rand(@_worker_memory_limit_min
|
44
|
+
@_worker_memory_limit ||= @_worker_memory_limit_min + Random.rand(@_worker_memory_limit_max-@_worker_memory_limit_min+1)
|
45
45
|
super(client) # Unicorn::HttpServer#process_client
|
46
46
|
|
47
47
|
@_worker_check_count += 1
|
@@ -104,7 +104,7 @@ module Unicorn::WorkerKiller
|
|
104
104
|
|
105
105
|
def process_client(client)
|
106
106
|
@_worker_process_start ||= Time.now
|
107
|
-
@_worker_cur_requests ||= Random.rand(@_worker_max_requests_min
|
107
|
+
@_worker_cur_requests ||= @_worker_max_requests_min + Random.rand(@_worker_max_requests_max-@_worker_max_requests_min+1)
|
108
108
|
@_worker_max_requests ||= @_worker_cur_requests
|
109
109
|
super(client) # Unicorn::HttpServer#process_client
|
110
110
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn-worker-killer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: unicorn
|