Merge pull request #1966 from ari-party/main
Add WEB_CONCURRENCY env support for Puma worker count
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user