mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Rename web_concurrency variable
[ci skip]
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user