- 3mo ·
-
Public·
-
mastodon.social
Connection pool sizes are probably the biggest footgun out there in every Rails application.
Use a single ENV variable to control:
1. Database pool size
2. Puma thread count
3. Sidekiq thread count
RAILS_MAX_THREADS is good for this. If any one of these is out of sync, can cause a BIG issue. Just set it once in one place.