[Fun with MySQL Replication] copying a topology

Source: Internet
Author: User

Simple and simple is true. Those high-end foreign copy topologies are purely self-abuse.
There are about four principles for implementing replication:

① A master database can have multiple slave Databases
② One slave database can only have one master database
③ Each slave Database Server ID is globally unique
④ Log_slave_updates has the utility of pass-through

The following is a brief introduction to the Topology Design of several types of replication, their advantages and disadvantages, and their application scenarios, which will be available soon.

(I) one master and one slave

Short Comment: The simplest Topology
Recommendation index:★★★★★



(Ii) one master, multiple slave



Short Comment: every slave database crashes
Recommendation index:★★★★☆



(Iii) Active-active dual-master Replication



Short Comment: Anti-cracking
Recommendation index: ☆☆☆☆☆



(Iv) Active-active dual-master in passive mode



Short Comment: one of the primary databases is read-only, which is a very important and common topology.
Recommendation index:★★★★★



(V) Dual-master replication with slave Databases



Short Comment: increase redundancy and eliminate single point of failure
Recommendation index:★☆☆☆☆☆



(6) Circular Replication


Short Comment: fragile Topology
Recommendation index: ☆☆☆☆☆



(Vii) master database-distribution master database-slave Database


Short Comment: The distribution of the master database is actually a slave database, the only purpose is to extract and provide the binlog of the master database, reduce the burden on the master database
Recommendation index:★★★☆☆



Replicate tree


Short Comment: Let Data fly and let read performance fly
Recommendation index:★★★☆☆


 

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.