Add WEB_CONCURRENCY env support for Puma worker count

This commit is contained in:
astrid
2025-12-05 19:26:54 +01:00
parent bc16f7582e
commit 3acc58ff41
+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 ENV.fetch("WEB_CONCURRENCY", Concurrent.physical_processor_count).to_i
threads 1, 1
# Tell the Ruby VM that we're finished booting up.