Top Banner

of 26

MySQL Whitepaper MySQL HA Solutions

Apr 09, 2018

ReportDownload

Documents

  • 8/8/2019 MySQL Whitepaper MySQL HA Solutions

    1/26

    MySQL High Availability Solutions

    An Overview of MySQL High Availability Solutions

    A MySQL Technical White Paper August 2006

    Copyright 2006, MySQL AB

  • 8/8/2019 MySQL Whitepaper MySQL HA Solutions

    2/26

    Table of Contents

    1 Executive Summary..............................................................................................................3

    2 High Availability Solutions from MySQL ............................................................................3 2.1 MySQL Replication ..........................................................................................................................................3 2.2 MySQL Replication for Disaster Recovery ......................................................................................................7 2.3 MySQL Cluster.................................................................................................................................................8 2.4 MySQL Cluster and Replication.....................................................................................................................12

    3 Third-Party High Availability Solutions for MySQL .........................................................13

    3.1 Linux Heartbeat & MySQL Replication ..........................................................................................................13 3.2 Linux Heartbeat, Block-Replication & MySQL ...............................................................................................15 3.3 Load Balancing with MySQL Replication.......................................................................................................17 3.4 MySQL with Shared Storage and Clustering Agents.....................................................................................19

    3.5

    High Availability/Performance Networking Dolphin SCI Interconnect ........................................................20

    3.6 Operating System Clustering Solutions .........................................................................................................21 3.7 High Availability Middleware - Continuent m/Cluster.....................................................................................21 3.8 High Availability Middleware High-Availability RSF-1.................................................................................21

    4 Implementing a MySQL High Availability Solution ..........................................................22

    4.1 MySQL Professional Services .......................................................................................................................22 4.2 MySQL Certified Partners and Products........................................................................................................23 4.3 MySQL Training .............................................................................................................................................23 4.4 MySQL Network.............................................................................................................................................23

    5 Why MySQL?.......................................................................................................................24

    5.1 Scalability and Flexibility ................................................................................................................................24 5.2 High Performance ..........................................................................................................................................24 5.3 High Availability..............................................................................................................................................24 5.4 Robust Transactional Support .......................................................................................................................24 5.5 Web and Data Warehouse Strengths ............................................................................................................24 5.6 Strong Data Protection...................................................................................................................................24 5.7 Comprehensive Application Development.....................................................................................................25 5.8 Management Ease.........................................................................................................................................25 5.9 Open Source Freedom and 24 x 7 Support...................................................................................................25 5.10 Lowest Total Cost of Ownership................................................................................................................25

    6 Conclusion ..........................................................................................................................26

    7 About MySQL......................................................................................................................26

    8 Resources ...........................................................................................................................26

    8.1 White Papers .................................................................................................................................................26 8.2 Case Studies..................................................................................................................................................26 8.3 Press Releases, News and Events................................................................................................................26 8.4 Live Webinars ................................................................................................................................................26 8.5 Webinars on Demand ....................................................................................................................................26

    Copyright 2006, MySQL AB Page 2 of 26

  • 8/8/2019 MySQL Whitepaper MySQL HA Solutions

    3/26

    1 Executive Summary

    In todays business world, information and the access to it, forms not only the infrastructure, but often theentire revenue model for some organizations. Therefore, maintaining the availability and access to this

    information has become increasingly more important and common place for businesses big and small.High availability has traditionally been the domain of mission and business critical systems such as,applications, databases and storage networks. However, less critical systems are beginning to takeadvantage of the many low-cost, high availability solutions currently available on the market.

    The demands placed on these information systems include not only ensuring the availability of importantdata, but also the efficient sharing of resources and the existing computing infrastructure. A highavailability solution should deliver the greatest amount of data and application availability across thediverse technology stacks currently found in many modern enterprises. These technology stacks includevarious operating systems, applications, hardware components, and can often span multiple geographiclocations. More often then not, it is a database that sits behind many of these critical applications andinformation assets. In A Guide to Database High Availability of this white paper series, we introducedgeneral database high availability architectures and concepts. We also explored some considerations to

    take into account when selecting a high availability database solution. In this paper, we will examine ingreater detail the high availability solutions provided by MySQL, including MySQL Replication and MySQLCluster. We will also include an introduction to MySQL Professional Services and the MySQL network ofcertified partners and products.

    2 High Availability Solutions from MySQL

    MySQL offers a wide array of options when selecting a high availability solution. These include MySQLReplication, MySQL Cluster, free and open-source solutions, as well as, products from our network ofcertified partners. In this section we focus on high availability solutions available directly from MySQL.

    2.1 MySQL Replication

    MySQL natively supports one-way, asynchronous replication. MySQL Replication works by simply havingone server act as a master, while one or more servers act as slaves. This is in contrast to thesynchronous replication which is a characteristic of MySQL Cluster.

    Asynchronous data replication means that data is copied from one machine to another, with a resultantdelay. Often this delay is determined by networking bandwidth, resource availability or a predeterminedtime interval set by the administrator. However, with the correct components and tuning, replication itselfcan appear to be almost instantaneous to most applications. Synchronous data replication implies thatdata is committed to one or more machines at the same time, usually via what is commonly known as atwo-phase commit.

    In standard MySQL Replication, the master server writes updates to its binary log files and maintains an

    index of those files in order to keep track of the log rotation. The binary log files serve as a record ofupdates to be sent to slave servers. When a slave connects to its master, it determines the last position ithas read in the logs on its last successful update. The slave then receives any updates which have takenplace since that time. The slave subsequently blocks and waits for the master to notify it of new updates.

    Below in Figure 1 is an illustration

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.