Merge pull request #1966 from ari-party/main

Add WEB_CONCURRENCY env support for Puma worker count
This commit is contained in:
Jorge Manrubia
2025-12-07 11:59:15 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ if !Rails.env.local?
# worker per CPU, 1 thread per worker and tune it from there.
#
# https://edgeguides.rubyonrails.org/tuning_performance_for_deployment.html#puma
workers Concurrent.physical_processor_count
workers Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
threads 1, 1
# Tell the Ruby VM that we're finished booting up.
+1 -1
View File
@@ -5,7 +5,7 @@ default: &default
workers:
- queues: [ "default", "solid_queue_recurring", "backend", "webhooks" ]
threads: 3
processes: <%= ENV.fetch("JOB_CONCURRENCY", Concurrent.physical_processor_count) %>
processes: <%= Integer(ENV.fetch("JOB_CONCURRENCY") { Concurrent.physical_processor_count }) %>
polling_interval: 0.1
development: *default