1. Master-slave synchronization principleMaster-slave synchronization architecture diagram (asynchronous synchronization)This is the most common master-slave synchronization architecture. Master-slave synchronization process (asynchronous synchronization)
What is binlog? Every time the main database commits a transaction, it records the data changes in a binary file called Three formats of binlog Statement format: Binlog Format Comparison
Two ways of master-slave synchronization
Master-slave synchronization process (semi-synchronous)
Semi-synchronous application scenarios High-availability backup: Semi-synchronous replication ensures the consistency between the slave and master databases. When the master database fails, switching to the slave database will not cause data loss. In order to ensure stability (so as not to drag down the main database due to slow semi-synchronization), it generally does not bear business traffic, 2. Master-slave synchronization application scenarioCommon scenarios : asynchronous synchronization of online slaves and semi-synchronization of high-availability backups Large data acquisition requirements with high consistency requirements Large data retrieval may cause the CPU usage of the slave database to soar and ack to slow down. The number of acks required for semi-synchronization can be set to 1. Under normal circumstances, the high-availability backup can This is the end of this article about the master-slave synchronization principle and application of MySQL. For more relevant content about the master-slave synchronization principle and application of MySQL, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed explanation of three commonly used web effects in JavaScript
>>: Analyze the method of prometheus+grafana monitoring nginx
Copy code The code is as follows: <!DOCTYPE ht...
View historical commands and execute specified co...
Enough of small talk <br />Based on the lar...
Effect If you use it, please optimize the code an...
Table of contents 1. Add packaging command 2. Run...
Table of contents Business Logic Data table struc...
This article refers to the work of 51CTO blog aut...
1. Convert the json object into a json string, an...
Install MySQL for the first time on your machine....
Table of contents Preface 1. bat executes js 2. T...
1. at is configured to write "This is a at t...
In the interview, you should have experienced the...
This article mainly introduces the implementation...
Deploy the project to the project site test envir...
【1】Know the width and height of the centered elem...