Hi,

Let's pretend we are using MySQL server and the connection to it is lost, 
meaning all (I think 5 by default) pooled DB connections are lost.

Can you confirm Rails behavior after that - does it try to reconnect if 
reconnect = true in the database.yml and how many times? Is there an option 
to poll the DB to reconnect the DB connections in the pool once the DB 
server connection is restored or the only option is to manually restart the 
used app server (e.g. thin, etc) for the connection pool to be re-initiated?

Also, what will Rails return on a new request in that state, having lost 
all of the pooled DB connections - I guess only errors, since at that given 
moment Rails has no DB connections whatsoever?

Any links to code at Github much appreciated.

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/vjE_shjOjl4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to