Permalink
Browse files

aggressively kill unicorn workers with UnicornKiller. [ci skip]

  • Loading branch information...
1 parent 95b7e30 commit 3146380365b0048a2e27085433f7d3fba11120c2 @danielgrippi danielgrippi committed Jan 27, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 config.ru
View
4 config.ru
@@ -8,6 +8,10 @@ require ::File.expand_path('../config/environment', __FILE__)
require ::File.expand_path('../lib/unicorn_killer', __FILE__)
require ::File.expand_path('../lib/rack/chrome_frame', __FILE__)
+# Kill unicorn workers really agressively (at 300mb)
+if defined?(Unicorn)
+ use UnicornKiller::Oom, 300 * 1024
+end
use Rack::ChromeFrame, :minimum => 8
run Diaspora::Application

0 comments on commit 3146380

Please sign in to comment.