aboutsummaryrefslogtreecommitdiffstats
path: root/config.ru
blob: 97e236ef2435798299d44b605ef6d14615ec532f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This file is used by Rack-based servers to start the application.

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