Advice for quick fire DB replication with Rails

We need an "out-of-the-box" sure-fire DB replication setup with
automatic failover for our Rails app. We haven't done it before. We'd
appreciate advice on what the simplest, surest, quickest method would
be (no more that one master/slave necessary, or two masters working
master/master).
Which gems? Which DB recommended?
Thanks

Yitzhak Bar Geva wrote:

We need an "out-of-the-box" sure-fire DB replication setup with
automatic failover for our Rails app. We haven't done it before. We'd
appreciate advice on what the simplest, surest, quickest method would
be (no more that one master/slave necessary, or two masters working
master/master).

I consider MySQL the easiest for such a setup, in spite of all its
quirks. Combine it with Heartbeat or CARP and you'll have a high
availability configuration.

If you'd really like it to be out-of-the-box, I'd like to chime in with
http://en.railscluster.nl where we've got this entire setup managed and
ready to go for you.

As nice as that sounds, it might not fly for two reasons:
1. Security: We probably won't be authorized to place the app on the
Internet. Until now, it's all privately hosted on closed connections
(perhaps if we could establish a closed connection...)
2. Latency. We're in Israel and the servers are in Europe.

Nonetheless, I'll ask my boss. Maybe...

Let's say we had to go it on our own, could you or anyone else
recommend the quicky recipe I'm seeking?

Thanks,
Yitzhak Bar Geva
http://www.nite.org.il/scripts/english/default.asp
P.S. That's our public site. As per today, the actual tests are
administered off-line.

Thanks