MySQL replication principle and Function analysis (2014-11-10)

Source: Internet
Author: User

Copy principle 1. Master writes the data to Binlog. 2. Slave Open two thread I/O thread and SQL thread. 3. The slave I/O thread thread thread attached to master, reading the Binlog file name and Binlog position location on master. 4. Slave receives master's change information through the I/O thread and writes it to the relay log (trunk log). 5. Read the relay log information via SQL thread to replay to slave.
What does replication solve? The individual believes that the primary role of replication is: 1. Backup function, the standby is a backup of the main library. 2. Read and write separation, the main library is responsible for writing operations, from the library to read operations. 3. Use multiple load balancers that can be read from the library. 4. Master-Slave is the foundation of a highly available architecture.

MySQL replication principle and Function analysis (2014-11-10)

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.