unicorn-worker-killer 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/README.md +3 -3
- data/VERSION +1 -1
- data/lib/unicorn/worker_killer.rb +1 -1
- data/lib/unicorn/{configuration.rb → worker_killer/configuration.rb} +0 -0
- data/unicorn-worker-killer.gemspec +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ed8c5bd07e15cafdfbe32d5bd24a91d6b09b241
|
4
|
+
data.tar.gz: 3b199f0934fad57d71aa1991ab13c87e8519f92f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f1555a10329668c867c883bbd1a40cd174389019773170cbcfcdeaef71d8fa7b1fe6790971e5e383312ebabd3da8100d8de25cd283aac5a3e0db2b260fa353
|
7
|
+
data.tar.gz: f15e7ca1d8dd6b340daf33180b6db1c93ff690c2c53587f17b2b0794eecd8e4736025e0adac8840de5df066011fbfab9b6bbeb743fb3a1349b70048196cc248c
|
data/ChangeLog
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,7 @@ Add these lines to your `config.ru`. (These lines should be added above the `req
|
|
25
25
|
|
26
26
|
This gem provides two modules.
|
27
27
|
|
28
|
-
### Unicorn::WorkerKiller::MaxRequests(max_requests_min=3072, max_requests_max=4096, verbose=false)
|
28
|
+
### `Unicorn::WorkerKiller::MaxRequests(max_requests_min=3072, max_requests_max=4096, verbose=false)`
|
29
29
|
|
30
30
|
This module automatically restarts the Unicorn workers, based on the number of requests which worker processed.
|
31
31
|
|
@@ -33,11 +33,11 @@ This module automatically restarts the Unicorn workers, based on the number of r
|
|
33
33
|
|
34
34
|
If `verbose` is set to true, then after every request, your log will show the requests left before restart. This logging is done at the `info` level.
|
35
35
|
|
36
|
-
### Unicorn::WorkerKiller::Oom(memory_limit_min=(1024
|
36
|
+
### `Unicorn::WorkerKiller::Oom(memory_limit_min=(1024\*\*3), memory_limit_max=(2\*(1024\*\*3)), check_cycle = 16, verbose = false)`
|
37
37
|
|
38
38
|
This module automatically restarts the Unicorn workers, based on its memory size.
|
39
39
|
|
40
|
-
`memory_limit_min` and `memory_limit_max` specify the min and max of maximum memory per worker. The actual limit is decided by rand() between `memory_limit_min` and `memory_limit_max` per worker, to prevent all workers to be dead at the same time. Once the memory size exceeds `memory_size`, that worker is automatically restarted.
|
40
|
+
`memory_limit_min` and `memory_limit_max` specify the min and max of maximum memory in bytes per worker. The actual limit is decided by rand() between `memory_limit_min` and `memory_limit_max` per worker, to prevent all workers to be dead at the same time. Once the memory size exceeds `memory_size`, that worker is automatically restarted.
|
41
41
|
|
42
42
|
The memory size check is done in every `check_cycle` requests.
|
43
43
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.4
|
File without changes
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
gem.licenses = ["GPLv2+", "Ruby 1.8"]
|
18
18
|
gem.require_paths = ['lib']
|
19
|
-
gem.add_dependency "unicorn", "
|
19
|
+
gem.add_dependency "unicorn", [">= 4", "< 6"]
|
20
20
|
gem.add_dependency "get_process_mem", "~> 0"
|
21
21
|
gem.add_development_dependency "rake", ">= 0.9.2"
|
22
22
|
end
|
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.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuki Ohta
|
@@ -10,22 +10,28 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: unicorn
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '4'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '6'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- - "
|
29
|
+
- - ">="
|
27
30
|
- !ruby/object:Gem::Version
|
28
31
|
version: '4'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '6'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: get_process_mem
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,8 +76,8 @@ files:
|
|
70
76
|
- README.md
|
71
77
|
- Rakefile
|
72
78
|
- VERSION
|
73
|
-
- lib/unicorn/configuration.rb
|
74
79
|
- lib/unicorn/worker_killer.rb
|
80
|
+
- lib/unicorn/worker_killer/configuration.rb
|
75
81
|
- unicorn-worker-killer.gemspec
|
76
82
|
homepage: https://github.com/kzk/unicorn-worker-killer
|
77
83
|
licenses:
|
@@ -94,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
100
|
version: '0'
|
95
101
|
requirements: []
|
96
102
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.4.7
|
98
104
|
signing_key:
|
99
105
|
specification_version: 4
|
100
106
|
summary: Kill unicorn workers by memory and request counts
|