Skip to content
Snippets Groups Projects
Unverified Commit 85ec6153 authored by Jim Myhrberg's avatar Jim Myhrberg Committed by GitHub
Browse files

feat(puma): enable setting min puma threads in addition to max (#21048)

parent 264655c5
No related branches found
No related tags found
No related merge requests found
persistent_timeout ENV.fetch('PERSISTENT_TIMEOUT') { 20 }.to_i
threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
threads threads_count, threads_count
max_threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
min_threads_count = ENV.fetch('MIN_THREADS') { max_threads_count }.to_i
threads min_threads_count, max_threads_count
if ENV['SOCKET']
bind "unix://#{ENV['SOCKET']}"
......@@ -10,7 +11,7 @@ else
end
environment ENV.fetch('RAILS_ENV') { 'development' }
workers ENV.fetch('WEB_CONCURRENCY') { 2 }
workers ENV.fetch('WEB_CONCURRENCY') { 2 }.to_i
preload_app!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment