当前位置:网站首页>系统架构&微服务
系统架构&微服务
2022-07-26 07:27:00 【傲娇的喵酱】

1、集群下,每个server节点的代码是一样的。
2、数据库主从读写分离。
数据库主从读写分离:
分担数据库的压力,主库负责写,从库负责读。
主库写完数据后,会将数据同步到从库。
读取数据做了分流,从库1与从库2。
保持数据的的一致性,主库将数据同步到从库,通过binlog文件实现。
binlog指二进制日志,它记录了数据库上的所有改变,并以二进制的形式保存在磁盘中,同步的是sql语句。
如何保证主从之间的数据低延迟?
延迟高,会导致我们写完数据后,去查数据,查不到该数据。过一会才会查到该数据。
dba需要保证主从的延迟。
它可以用来查看数据库的变更历史、数据库增量备份和恢复、MySQL的复制(主从数据库的复制)。
binlog有三种格式:
statement:基于SQL语句的复制(statement-based replication,SBR)
row:基于行的复制(row-based replication,RBR)
mixed:混合模式复制(mixed-based replication,MBR)
边栏推荐
- redis-migrate-tool迁移报错。
- Countdown 2 days! Based on the cross development practice of Apache dolphin scheduler & tidb, you can greatly improve your efficiency from writing to scheduling
- NFT数字藏品系统开发:激活数字文化遗产
- PXE efficient batch network installation
- Hcip--- BGP comprehensive experiment
- C# 使用Log4Net记录日志(基础篇)
- 6. Backup and recovery of MySQL database
- 此章节用于补充2
- College degree sales career, from the third tier 4K to the first tier 20k+, I am very satisfied with myself
- MMOE多目标建模
猜你喜欢

3.0.0 alpha 重磅发布!九大新功能、全新 UI 解锁调度系统新能力

Upgrade ecological proposition: what has Alibaba cloud brought to thousands of businesses?

:app:checkDebugAarMetadata 2 issues were found when checking AAR metadata: 2 issues were found when

C51与MDK共存 Keil5安装教程

依赖和关联的对比和区别

达人专栏 | 还不会用 Apache Dolphinscheduler?大佬用时一个月写出的最全入门教程【三】

【每日一题】919. 完全二叉树插入器

时间序列分析预测实战之ARIMA模型

6. Backup and recovery of MySQL database

MySQL installation tutorial - hands on installation
随机推荐
Differences in the use of function call pointer parameters *p, * & P
The interface automation test with a monthly salary of 12k+ takes you to get started in 3 minutes
基于Thinkphp的开源管理系统
redis-migrate-tool迁移报错。
In July, glassnode data showed that the open position of eth perpetual futures contract on deribit had just reached a one month high of $237959827.
Pycharm的相关配置:改字体样式和大小、更改图片背景、更改控制台输出的字体颜色
PXE efficient batch network installation
pycharm常用快捷键
July training (day 18) - tree
MySQL syntax (2) (pure syntax)
数据平台调度升级改造 | 从Azkaban 平滑过度到 Apache DolphinScheduler 的操作实践
4. Data integrity
Countdown 2 days! Based on the cross development practice of Apache dolphin scheduler & tidb, you can greatly improve your efficiency from writing to scheduling
2019中兴捧月·模型压缩方案
Introduction to C language -- summary table of operator priority sorting
5、多表查询
Summer Challenge harmonyos - hamster game based on arkui (JS)
Upgrade ecological proposition: what has Alibaba cloud brought to thousands of businesses?
Crawler data analysis
MySQL安装教程-手把手教你安装