bumped unicorn timeout to 90 seconds and made it configurable
This commit is contained in:
parent
2c70222a76
commit
091951a929
4 changed files with 9 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
## Features
|
||||
* Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252)
|
||||
* Show the user if a contact is sharing with them when viewing their profile page [#2948](https://github.com/diaspora/diaspora/issues/2948)
|
||||
* Made Unicorn timeout configurable and increased the default to 90 seconds
|
||||
|
||||
# 0.1.1.0
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ defaults:
|
|||
stdout_log:
|
||||
database: 'mysql'
|
||||
unicorn_worker: 2
|
||||
unicorn_timeout: 90
|
||||
embed_sidekiq_worker: false
|
||||
sidekiq_workers: 1
|
||||
privacy:
|
||||
|
|
|
|||
|
|
@ -152,6 +152,12 @@ configuration: ## Section
|
|||
## Number of Unicorn worker processes, increase this if
|
||||
## you have many users
|
||||
#unicorn_worker: 2
|
||||
|
||||
## Number of seconds before a request is aborted, increase if
|
||||
## you get empty responses, or large image uploads fail.
|
||||
## Decrease if you're under heavy load and don't care for some
|
||||
## requests to fail.
|
||||
#unicorn_timeout: 90
|
||||
|
||||
## Embed a Sidekiq worker inside the unicorn process, useful for
|
||||
## minimal Heroku setups
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ worker_processes AppConfig.server.unicorn_worker.to_i
|
|||
preload_app true
|
||||
|
||||
# How long to wait before killing an unresponsive worker
|
||||
timeout 30
|
||||
timeout AppConfig.server.unicorn_timeout.to_i
|
||||
|
||||
@sidekiq_pid = nil
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue