tidb数据库架构是什么样的呀

tidb数据库架构是什么样的呀

这门课程里,你想要的全都有

101-TiDB 数据库核心原理与架构

https://learn.pingcap.cn/learner/course/1290025

简单来说就是这张图

使劲撸撸官方文档,有项目的话可以做做迁移体验下。

1 个赞

±---------------+ ±---------------+ ±---------------+
| Application | | Load Balancer | | Backup/Tools |
| (Client) |<—>| (HAProxy) |<—>| (Dumpling) |
±------±-------+ ±---------------+ ±---------------+
| MySQL Protocol
v
±------±-------+ ±------±-------+ ±------±-------+
| TiDB | | TiDB | | TiDB |
| Server | | Server | |

±---------------+ ±---------------+ ±---------------+
| Application | | Load Balancer | | Backup/Tools |
| (Client) |<—>| (HAProxy) |<—>| (Dumpling) |
±------±-------+ ±---------------+ ±---------------+
| MySQL Protocol
v
±------±-------+ ±------±-------+ ±------±-------+
| TiDB | | TiDB | | TiDB |
| Server | | Server | | Server | (计算层)
±------±-------+ ±------±-------+ ±------±-------+
| SQL Requests | SQL Requests | SQL Requests
v v v
±----------------------------------------------------------------+
| PD Cluster | (大脑/调度)
| (Placement Driver) 管理元数据、分配ID、调度负载 |
±----------------------------------------------------------------+
^ ^ ^
| Region Info/TSO | Region Info/TSO | Region Info/TSO
| | |
±------±-------+ ±------±-------+ ±------±-------+
| TiKV | | TiKV | | TiKV |
| Server | | Server | | Server | (行存/事务)
±------±-------+ ±------±-------+ ±------±-------+
^ ^ ^
| Raft Replication | Raft Replication | Raft Replication
| (Data Sync) | (Data Sync) | (Data Sync)
| | |
±------±-------+ ±------±-------+ ±------±-------+
| TiFlash | | TiFlash | | TiFlash |
| Server | | Server | | Server | (列存/分析)
±---------------+ ±---------------+ ±---------------+

:thinking:这是什么?