The locking operations are time-consuming and the like used on the primary server, synchronized to the data from the server, and then from the server to search queries, additions and deletions in the master server
Separation of read and write
Copy the master-slave principle
Master copy from step
- The main library writes all log records in the binlog, and generates log dump thread, will pass from the library binlog log I / O threads
- Library generated from two threads, one I / O thread, another thread is SQL
- I / O request binlog thread to the log of the primary database, and the log file is written binlog relay log (relay log) in
- SQL thread reads the content of the relay loy, and parsed into specific operation to achieve consistent master-slave operation, the final data achieve the same purpose
docker mysql configuration method based on the master
https://www.cnblogs.com/djj123/p/11289043.html