Skip to content
This repository
Browse code

aggressively kill unicorn workers with UnicornKiller. [ci skip]

  • Loading branch information...
commit 3146380365b0048a2e27085433f7d3fba11120c2 1 parent 95b7e30
Daniel Grippi danielgrippi authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 config.ru
4 config.ru
@@ -8,6 +8,10 @@ require ::File.expand_path('../config/environment', __FILE__)
8 8 require ::File.expand_path('../lib/unicorn_killer', __FILE__)
9 9 require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
10 10
  11 +# Kill unicorn workers really agressively (at 300mb)
  12 +if defined?(Unicorn)
  13 + use UnicornKiller::Oom, 300 * 1024
  14 +end
11 15
12 16 use Rack::ChromeFrame, :minimum => 8
13 17 run Diaspora::Application

0 comments on commit 3146380

Please sign in to comment.
Something went wrong with that request. Please try again.