课程名称: 1.4 The TiDB platform architecture and landscape(TiDB 平台架构和全景图)
学习时长:
1小时
课程收获:
TiDB整体架构
TiDB TiKV PD的角色和作用
TiUP TiCDC等工具的功能
课程内容:
The TiDB Platform Architecture and Landscape
Part I: TiDB Core System
TiDB (SQL Layer)
- Stateless SQL layer
- Clients can connect to any existing tidb-server instance
- Full-featured SQL Layer
- Speaks MySQL wire protocol
- Cost-based optimization
- Secondary index support
- Online DDL
TiKV/TiFlash (Storage Layer)
- TiKV: row-based storage engine
- TiFlash: columar storage engine
PD (Placement Driver)
- Store the metadata of the cluster such as the region location of specific key.
- Schedule and load balance regions in the TiKV cluster,including but not limited to data migration and Raft group leader transfer.
- Allocate the transaction ID that is globally unique and monotonically increasing.
TiSpart (SQL Layer)
Part 2: TiDB Ecosystem Tools
- TiUP
- Lightning,Dumpling
- Backup & Restore (BR)
- Change data capture (CDC)
- DM (Data Migration)
- TiDB Operator
- Dashboard
- …
TiUP
- A New deployment and component management tool introduced in TiDB Platform 4.0
- Support local deployment,cluster deployment,component versioning and distribution
- https://tiup.io
Lightning
- Import large amounts of data into a TiDB cluster
- Support reading SQL dump exported via Mydumper or CSV data source
Dumpling
- Export data stored in TiDB as SQL or CSV data files
Fast Backup & Restore (BR)
- For large clusters
- Distributed backup/restore
- ~150MB/s per TiKV instance for backup/restore (with tunable backup speed)
- Support external storage,such as NFS and S3
- Multiple backup methods: Full/DB/Table
- Support CA/SSL security certification
TiCDC
- Change Data Capture Tool
- Highly Available
- Distributed,scale to any TiKV cluster size
- Repicate KV changes between TiKV clusters in milliseconds
- Transaction Restore
- ETL workload