From 8f8a1813bf88b60ea18025f08d0770037742f363 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Tue, 12 Jul 2022 12:27:33 +0200 Subject: [PATCH] chore: Fix puma configuration (#5023) Fixes the console warning: `` ` WARNING: Detected running cluster mode with 1 worker. Running Puma in cluster mode with a single worker is often a misconfiguration. ! Consider running Puma in single-mode (workers = 0) in order to reduce memory overhead. ``` --- config/puma.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 49cc02d5a..2b503f2fd 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -25,7 +25,7 @@ pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' } # Workers do not work on JRuby or Windows (both of which do not support # processes). # -workers ENV.fetch('WEB_CONCURRENCY', 1) +workers ENV.fetch('WEB_CONCURRENCY', 0) # Use the `preload_app!` method when specifying a `workers` number. # This directive tells Puma to first boot the application and load code