Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Failover support for a DB

0

55 views

We are currently evaluating failover support in different databases. We were earlier using HSQLDB but it seems that it does not have clustering/replication support. Our requirement is simply to have two database servers, one being only for synchronous backup but if the primary server is down, then the secondary should automatically start acting as the primary server.

Has anyone evaluated MySql, PostGres or any other DB server for such a use case?

asked June 10, 2011 5:15 am CDT
posted via StackOverflow

2 Answers

0
 

for a simple failover where servers are on the same location. you can use DRBD and Heartbeat.

In a nutshell: DRBD stores the data on 2 servers on the same time. fully transparent to the system. with heartbeat the standby checks against the main server, if its not reachable, it takes over the resource, mounts it and starts the database daemon. (works with mysql, postgres and most probably with most other daemons out there)

answered June 10, 2011 5:25 am CDT
2
 

Stackoverflow resources
MySQL supports replication out of the box: see this question for MySQL: Scaling solutions for MySQL (Replication, Clustering)

PostgreSQL also support replication, see this question for that: PostgreSQL replication strategies

If your requirements are simple MySQL will work
I've used MySQL is a simple master-master failover scenario using the setup I read in High Performance MySQL. I highly recommend the book if you're keen on using MySQL.

It has worked well for me, because I just wanted a simple fail-over.
If your use case is just as simple. It will work well.

answered June 11, 2011 12:29 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Libmemcached failover
January 9, 2011
DNS server failover
April 20, 2011
NIO support in Jersey
April 10, 2011