TiDB: Overview, New Features, Multi-Cloud Shen Li, Kevin Xu - - PowerPoint PPT Presentation

tidb overview new features multi cloud
SMART_READER_LITE
LIVE PREVIEW

TiDB: Overview, New Features, Multi-Cloud Shen Li, Kevin Xu - - PowerPoint PPT Presentation

TiDB: Overview, New Features, Multi-Cloud Shen Li, Kevin Xu PingCAP What is Ti(tanium) DB? NewSQL (RDBMS at Scale) MySQL Compatible (5.7) Hybrid OLTP + OLAP Workloads Multi-Cloud 2 Product: the TiDB Platform TiDB


slide-1
SLIDE 1

TiDB: Overview, New Features, Multi-Cloud

Shen Li, Kevin Xu

PingCAP

slide-2
SLIDE 2

2

What is Ti(tanium) DB?

  • NewSQL (RDBMS at Scale)
  • MySQL Compatible (5.7)
  • Hybrid OLTP + OLAP Workloads
  • Multi-Cloud
slide-3
SLIDE 3

3

Product: the TiDB Platform

  • TiDB Platform:
  • TiDB (stateless SQL layer)
  • TiKV (persistent key-value store w/ RocksDB)
  • TiSpark (Apache Spark plug-in to TiKV)
  • Open Sourced from Day 1
  • GA 2.0: April 2018
slide-4
SLIDE 4

Community

4

  • Stars:
  • TiDB: 15,600+
  • TiKV: 3,800+
  • Contributors:
  • TiDB: 210+
  • TiKV: 105+
slide-5
SLIDE 5

Recent News

5

slide-6
SLIDE 6

TiDB Overview

slide-7
SLIDE 7

Platform Architecture

7

Monitoring & Observability: Prometheus + Grafana

slide-8
SLIDE 8

TiKV: the Storage Foundation

8

slide-9
SLIDE 9

TiDB: the (My)SQL Layer

9

slide-10
SLIDE 10

300+ Companies in Production

10

slide-11
SLIDE 11

MySQL Compatible Tools and Migration

slide-12
SLIDE 12

Tools

12

  • TiDB-DM (Data Migration)
  • TiDB-Lightning
  • TiDB-Binlog
slide-13
SLIDE 13

TiDB-DM

13

  • Why? To support migrating data from MySQL/MariaDB to TiDB
  • Full data migration + binlog replication
  • Features:
  • Data migration job management
  • Monitoring system
  • Sharded table merge migration
  • Data transformation
slide-14
SLIDE 14

DM Architecture

14

slide-15
SLIDE 15

Sharded Table Merge

15

slide-16
SLIDE 16

Data Transformation

16

slide-17
SLIDE 17

TiDB-Lightning

17

  • Why? Enables fast, full import of SQL dump -> TiDB cluster
  • Fast:
  • Can import > 100 GB / hour on production grade hardware
  • Full Import:
  • Import the entire database once from scratch; not incremental import
  • Suitable for migrating an existing database to a new TiDB cluster
  • TiDB Cluster:
  • Lightning interacts with TiDB’s internal structures
  • Only works with TiDB cluster
slide-18
SLIDE 18

TiDB-Lightning Architecture

18

slide-19
SLIDE 19

TiDB-Binlog

19

  • Why? Provides real-time data synchronization and backup
  • Synchronizing downstream data platform in real-time to:
  • Hot backup
  • MySQL slave
  • OLAP data warehouses
  • Writing incremental backup files
  • Event subscription & trigger
slide-20
SLIDE 20

TiDB-Binlog Architecture

20

slide-21
SLIDE 21

Migration: in and out of TiDB

21

slide-22
SLIDE 22

Sneak Peek of TiDB 2.1

slide-23
SLIDE 23

TiDB 2.1 - SQL Layer

Smarter SQL optimizer

  • More efficient plan
  • Dynamic stats update based on

query feedback

Faster aggregation operator

  • New aggregation framework
  • Multi-thread hash aggregation
  • perator

50% faster OLTP point query

23

Faster online DDL

  • Run DDL concurrently
  • Faster “Add Index” operation

Improved debugging & diagnosis

  • More readable EXPLAIN result
  • “Explain Analyze” statement
  • Expose cluster information through

HTTP API

slide-24
SLIDE 24

TiDB 2.1 - Storage Engine (aka TiKV)

Raft learner

  • Improve cross-DC data availability

Hotspot scheduling

  • Automatically distribute hotspots to more idle instances

Batch region-splits

  • Avoid large region formation under heavy write workloads

2X read performance improvement

24

slide-25
SLIDE 25

1.0 vs 2.0 on TPC-H Scale 50

25

slide-26
SLIDE 26

2.0 vs 2.1 on TPC-H Scale 50

26

slide-27
SLIDE 27

2.1 vs 2.0 on Sysbench Point Select

27

slide-28
SLIDE 28

TiDB Cloud

slide-29
SLIDE 29

TiDB As A Service

29

  • Fully Managed by PingCAP
  • Upgrades, Patching, Online

DDL with No Downtime

  • Backup and Restore
  • Multi-Cloud Deployment

https://www.pingcap.com/tidb-cloud/

slide-30
SLIDE 30

TiDB Operator

30

slide-31
SLIDE 31

GCP Marketplace

31

slide-32
SLIDE 32

See it to believe it

32

  • PingCAP Booth #6
  • Demo by Greg

Weber TODAY at 1:20PM

slide-33
SLIDE 33

Oh…one more thing, TiDB Academy

33

https://www.pingcap.com/tidb-academy/

slide-34
SLIDE 34

Thank you!

@PingCAP, @shenli3514, @kevinsxu