Setting Sidekiq :concurrency on Heroku
问题 I'm having trouble figuring out how exactly concurrency works on Heroku, and how to go about setting the optimal :concurrency value for Sidekiq Here's the set up - Puma Web Server 2 workers 5 threads Heroku Dynos 8 web dynos 2 "worker" dynos (These will run Sidekiq, not to be confused with Puma Workers) DB Connections 120 Max Connections Allowed by Postgres 5 Active Record Pool Size (default) ?? Sidekiq :concurrency value Each Puma worker is allowed the default 5 ActiveRecord DB connections