当前位置:网站首页>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
边栏推荐
- 揭秘百度智能测试在测试自动执行领域实践
- Gbase8s database select has order by Clause 6
- GBase8s数据库select有ORDER BY 子句4
- Weekly recommended short video: How did Einstein think?
- Go高级工程师必修课 | 真心建议你来听听,别错过~
- oracle 19c : change the user sys/system username pasword under Linux
- AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸
- Easy express: we use Zadig to realize 10000 times of construction and deployment, smart operation and maintenance, and release development productivity
- Uncover the practice of Baidu intelligent test in the field of automatic test execution
- Gbase 8s extended external connection 1
猜你喜欢

When you are young, you should be awake to fight, and when you are young, you should have the courage to try

内插散点数据

bison使用error死循环的记录

一种可解释的几何深度学习模型,用于基于结构的蛋白质结合位点预测

Sofaregistry source code | data synchronization module analysis

地球观测卫星数据

An interpretable geometric depth learning model for structure based protein binding site prediction

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

Uncover the practice of Baidu intelligent test in the field of automatic test execution

谷粒商城项目
随机推荐
ERP编制物料清单 金蝶
现在怎么开户?有没有更快又安全的开通渠道
[pbootcms template] composition website / document download website source code
GBase8s数据库select有ORDER BY 子句6
助力极致体验,火山引擎边缘计算最佳实践
Li Kou daily question - day 31 -13 Roman array to integer
Go高级工程师必修课 | 真心建议你来听听,别错过~
GBase8s数据库INTO EXTERNAL 子句
百度云盘不限速下载大文件(2021-11亲测有效)
Jerry's about TWS pairing mode configuration [chapter]
缓存一致性,删除缓存,写入缓存,缓存击穿,缓存穿透,缓存雪崩
架构实战营第五模块课后作业
Uncover the practice of Baidu intelligent test in the field of automatic test execution
Installation and configuration of MariaDB
GBase8s数据库select有ORDER BY 子句2
Li Kou daily question - day 31 -13 Maximum perimeter of triangle
Codeforces Round #803 (Div. 2)
Gbase8s database select has order by Clause 2
&3 在浏览器中查看请求报文和响应报文
求大数的阶乘 ← C语言