Asynchronous replication and synchronous replication of MySQL master-slave replication

Source: Internet
Author: User

Asynchronous replication: MySQL natively supports one-way, asynchronous replication. Asynchronous replication means there is a delay in copying data from one machine to another-most importantly this means that the data cannot be copied/applied to the slave at the same time when the application's transaction commit has been confirmed. Typically, this delay is determined by network bandwidth, resource availability, and system load. However, with the right components and tuning, replication can be done almost instantaneously.

Synchronous replication: Synchronous replication can be defined as data being submitted to one or more machines at the same time, usually through a well-known "two-phase commit". While this does give you consistency in multiple systems, it also degrades performance due to increased additional message exchange.

MySQL, which uses the MyISAM or InnoDB storage engine, does not natively support synchronous replication, but some technologies, such as the Distributed Replication Block device (DRBD), can provide synchronous replication on the underlying file system. Allow the second MySQL server to take over if the primary server is lost (using a replica of the second server). To learn more, see: http://www.drbd.org/

Asynchronous replication and synchronous replication of MySQL master-slave replication

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.