MySQL master-slave replication (2) Introduction and distributed architecture

A, MySQL master-slave replication introduction

    MySQL supports one-way, two-way, cascaded chain, real-time, asynchronous replication. During replication, the master server acting as a server (the MASTER), while one or more other servers act as from the server (Slave).

    Replication can be unidirectional: M ==> S, may be bi-directional M <==> M, M can be more certainly synchronization ring means.

    If you set the chain cascading replication, then, from (Slave) in addition to acting as the server itself from the outside server, while also acting as its master server from below.

    Similar chain cascading replication A - replicative form> D of -> B -> C.

    Here to show you a variety of synchronous appearance.

    1, FIG unidirectional master-slave synchronization logic:

 

    2, the main synchronization logic main bidirectional FIG:

 

     3, the linear cascade FIG unidirectional twin master synchronization logic:

 

     4, ring device unidirectional cascade FIG multi-master synchronization logic

 

     5, an annular multi-stage one-way multi-master synchronization logic from FIG:

 

 

 

     Learn distributed architecture

 

 

    In the current production work, most applications are MySQL master-slave synchronization replication asynchronous , that is not strictly real-time data synchronization.

 

Guess you like

Origin www.cnblogs.com/cnxy168/p/11654915.html