re-enable preload app on unicorn

This commit is contained in:
Albert Yi
2016-11-07 10:49:47 -08:00
parent eb6746a8a8
commit cbc96a6c03
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ if defined?(Unicorn) && Rails.env.production?
require 'unicorn/worker_killer'
# Max requests per worker
use Unicorn::WorkerKiller::MaxRequests, 10_000, 15_000
use Unicorn::WorkerKiller::MaxRequests, 5_000, 10_000
# Max memory size (RSS) per worker
#use Unicorn::WorkerKiller::Oom, (192*(1024**2)), (256*(1024**2))

View File

@@ -4,7 +4,7 @@ app_path = "/var/www/danbooru2/current"
# Set unicorn options
worker_processes 22
preload_app false
preload_app true
timeout 180
listen "127.0.0.1:9000"