Skip to content

Commit

Permalink
IIIF #23 - Updating puma and sidekiq configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Nov 17, 2022
1 parent 07392f5 commit 1793c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# the maximum value specified for Puma. Default is set to 5 threads for minimum
# and maximum; this matches the default thread size of Active Record.
#
workers Integer(ENV['WEB_CONCURRENCY'] || 1)
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
Expand Down
4 changes: 2 additions & 2 deletions config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
development:
:concurrency: 5
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY") { 5 } %>
production:
:concurrency: 6
:concurrency: <%= ENV.fetch("SIDEKIQ_CONCURRENCY") { 2 } %>
:queues:
- default

0 comments on commit 1793c2a

Please sign in to comment.