diff --git a/config/puma.rb b/config/puma.rb index d43070639b5..2ff97f05f93 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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 diff --git a/config/unicorn.rb b/config/unicorn.rb index 091cc664e2f..3f9e8fec947 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -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 diff --git a/docs/installation/packaged/2-configuration.md b/docs/installation/packaged/2-configuration.md index b3b682baaaf..85dd9f89422 100644 --- a/docs/installation/packaged/2-configuration.md +++ b/docs/installation/packaged/2-configuration.md @@ -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