aboutsummaryrefslogtreecommitdiffstats
path: root/config.ru
blob: ec5b397f1f425a32e2e4a3689c6ea616c3e2a870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require ::File.expand_path('../config/environment',  __FILE__)

if Rails.env.production?
  # Unicorn self-process killer
  require 'unicorn/worker_killer'
  
  # Max requests per worker
  use Unicorn::WorkerKiller::MaxRequests, 3072, 4096
  
  # Max memory size (RSS) per worker
  use Unicorn::WorkerKiller::Oom, (144*(1024**2)), (256*(1024**2))
end

run Aclog::Application