From 9932cfc312ed31f82f612d664f101222586df31d Mon Sep 17 00:00:00 2001 From: Kartones Date: Fri, 23 Oct 2015 15:45:28 +0200 Subject: [PATCH] added info and sample commented config to config.ru --- config.ru | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/config.ru b/config.ru index 346a2e0148..8137b61079 100644 --- a/config.ru +++ b/config.ru @@ -1,6 +1,20 @@ # This file is used by Rack-based servers to start the application. +# --------------------- +# Unicorn unicorn-worker-killer gem config (must be before the environment require) +# @see https://github.com/kzk/unicorn-worker-killer + +#require 'unicorn/worker_killer' + +# Max requests per worker. Uncomment last parameter for verbosity (at unicorn log) + +#use Unicorn::WorkerKiller::MaxRequests, 3072, 4096 #, true + +# Max memory size (RSS) per worker. Uncomment last parameter for verbosity (at unicorn log) + +#use Unicorn::WorkerKiller::Oom, (500*(1024**2)), (600*(1024**2)) #, true + +# --------------------- + require ::File.expand_path('../config/environment', __FILE__) run CartoDB::Application - -# For specifics about Unicorn worker killer config to set here, check https://github.com/kzk/unicorn-worker-killer