当前位置:网站首页>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
边栏推荐
- MySQL 主从复制原理以及流程
- GBase8s数据库INTO table 子句
- Uncover the practice of Baidu intelligent test in the field of automatic test execution
- Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
- GBase8s数据库select有ORDER BY 子句6
- 谷粒商城项目
- How to create new user for ORACLE 19c (CDB & PDB)
- Installation and configuration of MariaDB
- 黑化的蜜雪冰城,凭营销就想抓牢消费者的心?
- 《Go题库·14》WaitGroup的坑
猜你喜欢

Jericho's position on initiating the connection back to the opposite ear: 【 chapter 】

Dragon Book tiger Book whale Book gnawing? Try the monkey book with Douban score of 9.5

AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸

What are outer chain and inner chain?

助力极致体验,火山引擎边缘计算最佳实践

Wonderful! Miaoying technology fully implements Zadig to help container construction, and fully embraces kubernetes and Yunyuan

Quick look | the long-awaited 2022 Guangzhou assistant testing engineer's real problem analysis is finally released

地球观测卫星数据

SOFARegistry 源码|数据同步模块解析

AutoCAD - text display mode and how CAD can directly open Tianzheng drawings
随机推荐
Installation and configuration of MariaDB
地球观测卫星数据
LM07丨细聊期货横截面策略
正大期货留4数据整合
【综合案例】信用卡虚拟交易识别
Gbase8s database into external clause
ShanDong Multi-University Training #3
【JUC系列】同步工具类之ThreadLocal
GBase8s数据库select有ORDER BY 子句2
Sofaregistry source code | data synchronization module analysis
Jerry's about TWS pairing mode configuration [chapter]
SOFARegistry 源码|数据同步模块解析
How to install oracle19c in Centos8
面试突击61:说一下MySQL事务隔离级别?
Gbase8s database select has a having clause
什么是外链和内链?
求大数的阶乘 ← C语言
力扣每日一题-第31天-13.三角形的最大周长
torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
ERP编制物料清单 金蝶