unicorn: increase workers, reduce timeout.

This commit is contained in:
evazion
2021-01-26 19:41:56 -06:00
parent 78892e6239
commit 0919acb861

View File

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