unicorn-worker-killer 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c797670bfc0ae3167daa7fe1182233559315ff54
4
- data.tar.gz: 2eef704073a541d87d25d67f2db032a4ab1a4e49
3
+ metadata.gz: 1ed8c5bd07e15cafdfbe32d5bd24a91d6b09b241
4
+ data.tar.gz: 3b199f0934fad57d71aa1991ab13c87e8519f92f
5
5
  SHA512:
6
- metadata.gz: 2e2ae23ab3aa77ead7054cc95142750dc48395922c357d37fb705cef2c65c325bce849dcd450b0a1ad6b6d5671014dc818d62ff3c2821858d963904e2bb76187
7
- data.tar.gz: 571aafd204e1f2e02b782dc64d47531213f941b09737561750313e5aa4fb0f227187720ed355fc8d3eee9d3b2a089799f4609be63733b24b84032434db202722
6
+ metadata.gz: f6f1555a10329668c867c883bbd1a40cd174389019773170cbcfcdeaef71d8fa7b1fe6790971e5e383312ebabd3da8100d8de25cd283aac5a3e0db2b260fa353
7
+ data.tar.gz: f15e7ca1d8dd6b340daf33180b6db1c93ff690c2c53587f17b2b0794eecd8e4736025e0adac8840de5df066011fbfab9b6bbeb743fb3a1349b70048196cc248c
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ Release 0.4.4 - 2015/11/13
2
+ * update for Unicorn 5
3
+
1
4
  Release 0.4.3 - 2013/12/23
2
5
  * fix for occasional 'invalid argument' error
3
6
 
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**3), memory_limit_max=(2*(1024**3)), check_cycle = 16, verbose = false)
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.3
1
+ 0.4.4
@@ -1,4 +1,4 @@
1
- require 'unicorn/configuration'
1
+ require 'unicorn/worker_killer/configuration'
2
2
  require 'get_process_mem'
3
3
 
4
4
  module Unicorn::WorkerKiller
@@ -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", "~> 4"
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.3
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: 2014-12-23 00:00:00.000000000 Z
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.2.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