MySQL Disaster Recovery and High Availability

Data Replication and Application recovery for MySQL on Linux

Recover MySQL applications from a failure on the primary database server to a designated backup server without significant lost time or human intervention.
LifeKeeper is able to monitor all resources used by an application (IP, Disk, Volume) as well as checking that the application itself is running (for example it could execute a known data query). This proactive approach allows LifeKeeper to migrate an application in the event of a failure (for instance a network failure, local network card failure or even disk failure) to a different host.

Data Replication - eliminating the need for shared storage

Without shared storage, LifeKeepers data replication software can be used to mirror data to a remote server, and seamlessly handle the switchover in the event of a failure.

SQL Recovery to backup server without shared storage

Click the diagram above to see a larger version.

When data is written to disk, LifeKeeper data replication will mirror that data to a local or remote backup server. This ensures that the data is up to date in the event of a server or disk failure. The MySQL recovery kit enables switchover of MySQL applications to a backup server.

The data replication can occur over either a LAN or a WAN, and either synchronous or asynchronous approaches are available. Because the data replication software only transmits changes in data, and reads at the raw block level, it is efficient, versatile, relatively fast and is not dependant upon the file system type being used by the operating system.

The image illustrates the replication of data from one active node, to another backup node using the Data Replication software. Because the backup server will have an up to date copy of the data held on the active server, failover can occur at any time.

SQL Recovery to a remote site

Click the diagram above to see a larger version.

Data replication over a Wide Area Network

The below image illustrates the data replication taking place over a Wide Area Network. As mentioned above, due to the efficiency of the data replication software, it is feasible for replication to take place to a remote site, allowing for optimal disaster recovery and data protection.

LifeKeeper can run in an Active/Active or Active/Backup configuration

The diagrams so far have all shown MySQL running with LifeKeeper protection, in an Active/Backup configuration - i.e. one machine is always idle in case of emergency, this is an optimal configuration if performance is an issue. In some environments this redundancy of hardware may not be desirable, and a slight degradation of service may be acceptable over a short period of time (until the fault can be fixed with the primary server) and LifeKeeper can run in an Active/Active configuration as shown by the below diagrams.

Running multiple=

Click the diagram above to see a larger version.

The above diagrams show how LifeKeeper runs in an Active/Active configuration, where on failure on one node, the other node takes over and runs both services locally. An Active/Active configuration may use either shared storage, or the data replication discussed above. The Active/Active configuration allows for optimal resource usage combined with high availability; although in the event of a failover it is possible for performance to suffer if a server becomes heavily loaded.

Alternatively, if many servers are to be used, it is feasible to have an N+1 configuration where one machine acts as a backup to numerous active servers. In the event of more than one failover occurring, the applications can fail over to any other active machines, in an order determined by the administrator during installation / initial configuration.

SQL Recovery to backup server using shared storage

Click the diagram above to see a larger version.

In a shared storage environment (FC/SAN/NAS/iSCSI)

Manage shared storage, and determine when to failover in the event of a localised failure on the local machine.

For a seamless recovery of your servers, SteelEye Life Keeper from Open Minds guarantees to provide you with a complete disaster recovery solution ensuring that you maintain business continuity. Our high availability solutions will grant continuous data protection providing data replication as well as the monitoring of all your servers to ensure failover through the Java GUI.

Click here to enquire online
Book a Web Demo
Book a Free Consultation

MySQL for Linux Articles of Interest

Openminds and LifeKeeper, Maintaining High Standards

We chose LifeKeeper because we liked the fact that recovery takes place in under 5 minutes. We did a lot of testing at the time of installation and everything is running really well. LifeKeeper does exactly what it says on the tin.

Colin Kennedy, Interlink

See our Blog
©2008 Open Minds High Availability Solutions UK. All rights reserved. Registered in England and Wales No.03926828