Forum: Rails-core (closed, excessive spam) Reconnect to another database in rails application

Posted by Delporte Benoit (benoit_delporte)
on 2008-07-20 01:25
Hi,
I have a rails application using mysql.
In my architecture, I deployed 2 mysql servers.
In my database.yml, I specified to my application to connect on the
server 1.
But I would know if it's possible,in the case where this mysql server
failed,
If I can specify to my application to reconnect to the other server.

I think I have to overload some rails function's API, and I don't know
if rails can support to reconnect to another server.

If somebody can answer to me ???
Thanks in advance.
Cheers ...
This topic is locked and can not be replied to.