worker_killer 0.1.0.19839 → 0.1.0.19840

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87ac13b4bd486015cd2e99a580fa311878b094b2dd621351c7b8997c476a50ff
4
- data.tar.gz: 5635186d2b8cf8d7b25d72c639733ca603afea7406f3d0bb7e172ff7d52d941d
3
+ metadata.gz: e0320c08d8cf006010822dc1fe800d5967028ed491de7b832300ccbc550b325b
4
+ data.tar.gz: 1849c4ec03a678cbb1653b1b26fae06f6c59a481c757b545cda27a75735f79c5
5
5
  SHA512:
6
- metadata.gz: 6e72c3f683cc72d7e18937ec6cc2ae66281149418dad1dc26f1649a6a62f92009d15f643c292cb79a445b867d2305fae5198a8721a1a2b92350346f7f6d070bd
7
- data.tar.gz: 85c8cd4872a38b99d2aed420ba52c69f14746e86d2ff12d61103c79b96c40fc35fb46770ac79f15f3b6d672d4857f2c15d44388efc052b0017bb494d3ea644e7
6
+ metadata.gz: dfb3ad12cf879083ff6fa3cee357c2373d93265ae547f864d826b04b66b2c1a0f53e94d3186c553490beb7f2a91b9108542d43d19c0d1bbd72df66ad3310268a
7
+ data.tar.gz: 92b2afea5aee01a08054bab270498a4bd58bb9b8287bcc42cbe3bc9b67a3d70f7a0267a1decd9f97ac4165ca9ca3525bd32c39af9fc8ae4193d68c5dfd7c12b3
data/README.md CHANGED
@@ -16,21 +16,24 @@ Planned:
16
16
  # Install
17
17
 
18
18
  No external process like `god` is required. Just install one gem: `worker-killer`.
19
-
20
- gem 'worker-killer'
19
+ ```ruby
20
+ gem 'worker-killer'
21
+ ```
21
22
 
22
23
  # Usage
23
24
 
24
25
  Add these lines to your `config.ru` or `application.rb`. (These lines should be added above the `require ::File.expand_path('../config/environment', __FILE__)` line.
25
26
 
26
- # self-process killer
27
- require 'worker_killer/middleware'
28
-
29
- # Max requests per worker
30
- config.middleware.insert_before(Rack::Sendfile, WorkerKiller::Middleware::RequestsLimiter, min: 4096, max: 5120)
31
-
32
- # Max memory size (RSS) per worker
33
- config.middleware.insert_before(Rack::Sendfile, WorkerKiller::Middleware::OOMLimiter, min: 300 * (1024**2), max: 400 * (1024**2))
27
+ ```ruby
28
+ # self-process killer
29
+ require 'worker_killer/middleware'
30
+
31
+ # Max requests per worker
32
+ config.middleware.insert_before(Rack::Sendfile, WorkerKiller::Middleware::RequestsLimiter, min: 4096, max: 5120)
33
+
34
+ # Max memory size (RSS) per worker
35
+ config.middleware.insert_before(Rack::Sendfile, WorkerKiller::Middleware::OOMLimiter, min: 300 * (1024**2), max: 400 * (1024**2))
36
+ ```
34
37
 
35
38
  This gem provides two modules: WorkerKiller::CountLimiter and WorkerKiller::MemoryLimiter and some Rack integration.
36
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worker_killer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.19839
4
+ version: 0.1.0.19840
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri