From 91d87ebd7d0e027fd6adeacd82a6f0d18c9967ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Pawe=C5=82=20Gajc?= Date: Tue, 20 Mar 2018 11:00:03 +0100 Subject: [PATCH] reduce puma workers and threads --- config/puma/production.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/puma/production.rb b/config/puma/production.rb index e29239122..798ea3ac8 100644 --- a/config/puma/production.rb +++ b/config/puma/production.rb @@ -2,8 +2,8 @@ base_path = "/app/rosa-build" bind 'unix:///app/rosa-build/rosa_build.sock' environment ENV['RAILS_ENV'] || 'production' -threads *(ENV['PUMA_THREADS'] || '16,16').split(',') -workers ENV['PUMA_WORKERS'] || 7 +threads *(ENV['PUMA_THREADS'] || '12,12').split(',') +workers ENV['PUMA_WORKERS'] || 5 preload_app!