From 0919acb8615553e20dbc1a6d01d51a4bd8437028 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 26 Jan 2021 19:41:56 -0600 Subject: [PATCH] unicorn: increase workers, reduce timeout. --- config/unicorn/production.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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|