keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

Database connection pool size should use SIDEKIQ_CONCURRENCY in worker process #847

Closed ezekg closed 1 month ago

ezekg commented 1 month ago

Right now it's using RAILS_MAX_THREADS but it should use SIDEKIQ_CONCURRENCY in the worker process since these values often do not align (e.g. we're using 2 and 25 in production, respectively).

See: https://github.com/mastodon/mastodon/pull/26488

ezekg commented 1 month ago

See: https://github.com/mastodon/mastodon/blob/main/config/database.yml#L3