【TiDB 4.0 PCTA 学习笔记】- 1.4 The TiDB platform architecture and landscape(TiDB 平台架构和全景图)@2班+陈俊聪

课程名称: 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)

e4dbfc97a5b7c8cfe11e15f291f3f03.png

  • 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)

PD (Placement Driver)

2455242a95ab1bb16f33b051473ebab.png

  1. Store the metadata of the cluster such as the region location of specific key.
  2. Schedule and load balance regions in the TiKV cluster,including but not limited to data migration and Raft group leader transfer.
  3. 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)

aec649ef1ec2a4e523b93402cad7b33.png

  • 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

LandScape

学习过程中参考的其他资料