Best unofficial Apache Server developers community |
|
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?
posted via StackOverflow
|
|
 
|
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) |
|
 
|
Stackoverflow resources PostgreSQL also support replication, see this question for that: PostgreSQL replication strategies If your requirements are simple MySQL will work It has worked well for me, because I just wanted a simple fail-over. |