当前位置:网站首页>Principle and process of MySQL master-slave replication
Principle and process of MySQL master-slave replication
2022-06-29 12:24:00 【A little dog】
MySQL Principle and process of master-slave replication
MySQL What is master-slave replication ?
Make sure the primary server (Master) And from the ( To prepare Slave) Data consistency , Want to Master After data modification ,( Under certain rules )Slave Will Master Synchronize the data in .
MySQL What problem does master-slave replication solve ?
1. High availability and stability
When Master When the node goes down , You can specify one Slave act as Master,( When the Master Downtime during data operation , May lead to Slave Machine data inconsistency )
2. Load balancing
Can be read-write separation , such as Master Mainly used for write operation , The read operation is left to Slave, As the demand for query is greater , Use multiple standby servers for reading .
3. Business modularity
Create the database index for different business scenarios and select according to the business MySQL Storage engine , Different slave Different indexing and storage engines can be set according to different requirements
MySQL Master slave replication process

- Master The master library will write the changed data to ,( adopt
binlog Threads)binlog Binary log , Execute sequence to record binary log . After logging binary logs , The main database tells the storage engine that the transaction can be committed . - Slave Will start a
IO Threads,IO Threads will read in sequence Master Binary log in , And write it to the relay log (relay log). - Slave The information in the relay log of is passed through
SQL ThreadsThe playback , Execute... From the library , To update the data .
Please correct me if there is any mistake
边栏推荐
- oracle 19c : change the user sys/system username pasword under Linux
- 面试突击61:说一下MySQL事务隔离级别?
- Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?
- Intelligent trash can (IV) -- raspberry pie Pico realizes ultrasonic ranging (hc-sr04)
- AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸
- GBase8s数据库与 FOR UPDATE 子句不兼容的语法
- Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
- 什么是外链和内链?
- Go高级工程师必修课 | 真心建议你来听听,别错过~
- Is the table queried by this EMR sparksql node ODPs?
猜你喜欢

Intelligent trash can (IV) -- raspberry pie Pico realizes ultrasonic ranging (hc-sr04)

智能垃圾桶(四)——树莓派pico实现超声波测距(HC-SR04)

How to create new user for ORACLE 19c (CDB & PDB)

oracle 19c : change the user sys/system username pasword under Linux

【JUC系列】同步工具类之ThreadLocal

&4 express框架

助力极致体验,火山引擎边缘计算最佳实践
![Jerry's about TWS pairing mode configuration [chapter]](/img/c8/d78e817295169753244299545d9aba.png)
Jerry's about TWS pairing mode configuration [chapter]

ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集

易快报:我们用 Zadig 实现万次构建部署,聪明运维,释放开发生产力
随机推荐
[leetcode] 14. Longest public prefix
Set operator of gbase8s database in combined query
Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
Uncover the practice of Baidu intelligent test in the field of automatic test execution
Jerry's about TWS pairing mode configuration [chapter]
每周推荐短视频:爱因斯坦是怎样思考问题的?
Gbase8s database select has order by Clause 5
对p值的理解
Unified exception reporting practice based on bytecode
面试突击61:说一下MySQL事务隔离级别?
Pangolin编译error: ‘numeric_limits’ is not a member of ‘std’
《自卑与超越》生活对你应有的意义
When a technician becomes a CEO, what "bugs" should be modified?
AutoCAD - text display mode and how CAD can directly open Tianzheng drawings
面试突击61:说一下MySQL事务隔离级别?
AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸
Engineering practice behind dall-e 2: ensure that the output of the model complies with the content policy
Gbase8s database for update clause
Do you think people who learn machinery are terrible?
Gbase8s database select has an order by clause