bumped unicorn timeout to 90 seconds and made it configurable

This commit is contained in:
Jonne Haß 2013-07-03 12:52:35 +02:00
parent 2c70222a76
commit 091951a929
4 changed files with 9 additions and 1 deletions

View file

@ -10,6 +10,7 @@
## Features ## Features
* Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252) * 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) * 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 # 0.1.1.0

View file

@ -38,6 +38,7 @@ defaults:
stdout_log: stdout_log:
database: 'mysql' database: 'mysql'
unicorn_worker: 2 unicorn_worker: 2
unicorn_timeout: 90
embed_sidekiq_worker: false embed_sidekiq_worker: false
sidekiq_workers: 1 sidekiq_workers: 1
privacy: privacy:

View file

@ -153,6 +153,12 @@ configuration: ## Section
## you have many users ## you have many users
#unicorn_worker: 2 #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 ## Embed a Sidekiq worker inside the unicorn process, useful for
## minimal Heroku setups ## minimal Heroku setups
#embed_sidekiq_worker: true #embed_sidekiq_worker: true

View file

@ -10,7 +10,7 @@ worker_processes AppConfig.server.unicorn_worker.to_i
preload_app true preload_app true
# How long to wait before killing an unresponsive worker # How long to wait before killing an unresponsive worker
timeout 30 timeout AppConfig.server.unicorn_timeout.to_i
@sidekiq_pid = nil @sidekiq_pid = nil