Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielgrippi <danielgrippi@gmail.com>2012-01-27 23:54:58 +0400
committerdanielgrippi <danielgrippi@gmail.com>2012-01-27 23:54:58 +0400
commit3146380365b0048a2e27085433f7d3fba11120c2 (patch)
treeeff89d490d6dd1028f1792e0a55e8270c5de655c /config.ru
parent95b7e30e009a495e15cf54d1e83e8f1ce5c0222f (diff)
aggressively kill unicorn workers with UnicornKiller. [ci skip]
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.ru b/config.ru
index 73f9ca8ba..a49db71c6 100644
--- a/config.ru
+++ b/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