Rename web_concurrency variable

[ci skip]
This commit is contained in:
Oliver Günther
2019-10-07 10:00:24 +02:00
parent 1ba3507fd6
commit 2bee73387f
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ environment ENV.fetch("RAILS_ENV") { "development" }
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
workers ENV.fetch("WEB_CONCURRENCY") { 1 }
workers ENV.fetch("OPENPROJECT_WEB_WORKERS") { 1 }
# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code
+2 -2
View File
@@ -26,8 +26,8 @@
# See docs/COPYRIGHT.rdoc for more details.
#++
worker_processes Integer(ENV['WEB_CONCURRENCY'] || 4)
timeout Integer(ENV['WEB_TIMEOUT'] || 300)
worker_processes Integer(ENV['OPENPROJECT_WEB_WORKERS'] || 4)
timeout Integer(ENV['OPENPROJECT_WEB_TIMEOUT'] || 300)
preload_app true
# Preloading the unicorn server to have all workers spawn the application
@@ -250,13 +250,13 @@ The default from 9.0.3 onwards is four worker processes. Each worker will take r
We recommend at least four workers. Please check your current worker count with
```bash
sudo openproject config:get WEB_CONCURRENCY
sudo openproject config:get OPENPROJECT_WEB_WORKERS
```
If it returns nothing, the default worker count of `4` applies. To increase or decrease the worker count, call
```bash
sudo openproject config:set WEB_CONCURRENCY=number
sudo openproject config:set OPENPROJECT_WEB_WORKERS=number
```
Where `number` is a positive number between 1 and `round(AVAILABLE_RAM * 1.5)`.
@@ -298,7 +298,7 @@ You can list all of the environment variables accessible to the application by r
SMTP_USERNAME=mail
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_AUTHENTICATION=plain
WEB_CONCURRENCY=4
OPENPROJECT_WEB_WORKERS=4
WEB_TIMEOUT=15
RAILS_CACHE_STORE=memcache
SESSION_STORE=cache_store