Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase the database connection pool in production
Based on the puma README (https://github.com/puma/puma#configuration) it looks like the default max thread count is 16. According to Heroku's documentation (https://devcenter.heroku.com/articles/concurrency-and-database-connections#threaded-servers) a reasonable default for Puma is the RAILS_MAX_THREADS value. I didn't find a MAX_THREADS value for Sinatra, so I'm using Puma's default.
- Loading branch information