diff --git a/config/unicorn/production.rb b/config/unicorn/production.rb index 7ac586706..1425d632e 100644 --- a/config/unicorn/production.rb +++ b/config/unicorn/production.rb @@ -2,9 +2,9 @@ app_path = "/var/www/danbooru2/current" # Set unicorn options -worker_processes 20 +worker_processes 30 -timeout 180 +timeout 60 # listen "127.0.0.1:9000", :tcp_nopush => true listen "/tmp/.unicorn.sock", backlog: 1024 @@ -73,7 +73,7 @@ before_fork do |server, worker| # to the implementation of standard Unix signal handlers, this # helps (but does not completely) prevent identical, repeated signals # from being lost when the receiving process is busy. - sleep 1 + sleep 0.25 end after_fork do |server, worker|