From 9d5537e7e6368d411530c7f84cb8da57c948af85 Mon Sep 17 00:00:00 2001 From: Brandt Lareau Date: Fri, 13 Dec 2024 14:47:39 -0800 Subject: [PATCH] Reduce over all threads running this web server (#528) --- config/initializers/backgrounder.rb | 2 +- config/puma.rb | 2 +- current_version.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/backgrounder.rb b/config/initializers/backgrounder.rb index 1f94aa8a..be077285 100644 --- a/config/initializers/backgrounder.rb +++ b/config/initializers/backgrounder.rb @@ -36,7 +36,7 @@ def kill attr_accessor :current_job end - TOTAL_MANAGERS = 5 + TOTAL_MANAGERS = 3 CRON_TASKS = { 'ContinueUploadWorker' => 60.seconds.to_i, diff --git a/config/puma.rb b/config/puma.rb index 7045a0aa..c9710677 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -8,7 +8,7 @@ # # max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 5) # min_threads_count = ENV.fetch('RAILS_MIN_THREADS') { max_threads_count } -# threads min_threads_count, max_threads_count +threads 1, 2 workers 0 # Won't work on multiple process because it shares memory for webhooks diff --git a/current_version.txt b/current_version.txt index 9773998b..23e595e7 100644 --- a/current_version.txt +++ b/current_version.txt @@ -1 +1 @@ -v6.0.0 +v6.0.1