当前位置:网站首页>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
边栏推荐
- The blackened honeysnow ice city wants to grasp the hearts of consumers by marketing?
- Do you think people who learn machinery are terrible?
- 龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书
- Set operator of gbase8s database in combined query
- 爱可可AI前沿推介(6.29)
- GBase8s数据库select有ORDER BY 子句2
- Numpy's ndarray array Foundation
- 文件包含之日志中毒(User-Agent)
- ERP preparation of BOM basis
- Numpy's ndarray array Foundation
猜你喜欢

Ttchat x Zadig open source co creates helm access scenarios, and environmental governance can be done!

Kyligence Zen, an intelligent indicator driven management and decision-making platform, is newly launched and is in limited internal testing

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

How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native architecture vs traditional IT architecture

Interview shock 61: tell me about MySQL transaction isolation level?

What are outer chain and inner chain?

JVM之方法区

百度云盘不限速下载大文件(2021-11亲测有效)

缓存一致性,删除缓存,写入缓存,缓存击穿,缓存穿透,缓存雪崩

After class assignment of module 5 of the construction practice camp
随机推荐
MySQL主从同步之 异步复制 半同步复制 全同步复制
GBase8s数据库select有ORDER BY 子句6
正大期货留4数据整合
面试突击61:说一下MySQL事务隔离级别?
torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
大家有没有觉得学机械的人很可怕?
现在怎么开户?有没有更快又安全的开通渠道
ERP编制物料清单 金蝶
ERP preparation of bill of materials Huaxia
妙!妙盈科技全面实施 Zadig 助力容器化建设,全面拥抱 Kubernetes 和云原生
东方财富证券开户安全吗 证券开户办理
torch.load加载模型报错:Can‘t get attribute ‘vae_vc‘ on <module ‘__main__‘ from ‘xxxx()运行文件路径‘
Go高级工程师必修课 | 真心建议你来听听,别错过~
Jerry's about TWS channel configuration [chapter]
ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集
ERP编制物料清单 华夏
GBase8s数据库INTO TEMP 子句创建临时表来保存查询结果。
Jericho's position on initiating the connection back to the opposite ear: 【 chapter 】
如何查看网站已经保存的密码
ERP preparation of BOM basis