Open j-mcnally opened 10 years ago
The solution here was to add
ActiveRecord::ConnectionTimeoutError
to the ADAPTER_ERRORS
in reconnectable.
Does this make anysense, without it the db wouldnt try the connection again
Yes, checking for ConnectionTimeoutError
does make sense. Usually this error is a symptom of not having a large enough connection pool. What is the sum of all connections
in your rapns_apps
table?
i was afraid this was an issue, i have to set small DB_POOL size because we are wroking on heroku postgres_hobby which limits pool size to 20. Probably why I ran into this, while probably a bit slower, checking ConnectionTimeoutError seems to have resolved the symptoms.
I am running on heroku and have been getting quite a bit of these, i think its a heroku issue but wanted confirm i dont need to be catching and reconnecting anywhere?