ActiveRecord::ConnectionTimeoutError happening sporadically
问题 Whenever I have an application using ActiveRecord I get this ConnectionTimeoutError - but always after a certain unknown period of time ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5 seconds. The max pool size is currently 30; consider increasing it.): It was previously set to 5, we have already increased it, and there is no way it can be using 30 connections at the same time. The only thing we use ActiveRecord for is our session store. Our database.yml