DEV Community

Discussion on: Stumped about Rails Connection Limit Error

Collapse
 
rhymes profile image
rhymes

Could you post somewhere your puma settings? A good practice is to basically multiply thread numbers by process numbers and then leave a margin of free connections to avoid getting to the limit.

My advice is to read this article and implement the suggestions, it has never failed me in the past :D

Configuring Puma, Unicorn and Passenger for Maximum Efficiency