CNCF TOC Meeting
July 3, 2018
© 2018 Cloud Native Computing Foundation
1
LF Antitrust Policy Notice
CNCF meetings involve participation by industry competitors, and it is the intention of the Linux Foundation to conduct all of its activities in accordance with applicable antitrust and competition laws. It is therefore extremely important that attendees adhere to meeting agendas, and be aware of, and not participate in, any activities that are prohibited under applicable US state, federal or foreign antitrust and competition laws.
Examples of types of actions that are prohibited at CNCF meetings and in connection with Linux Foundation activities are described in the Linux Foundation Antitrust Policy available at http://www.linuxfoundation.org/antitrust-policy. If you have questions about these matters, please contact your company counsel, or if you are a member of the Linux Foundation, feel free to contact Andrew Updegrove of the firm of Gesmer Updegrove LLP, which provides legal counsel to the Linux Foundation.
© 2018 Cloud Native Computing Foundation
2
Meeting Logistics
© 2018 Cloud Native Computing Foundation
3
TOC - Members Present Today
Note: TOC meetings require a quorum of two-thirds of the TOC total members to take a vote or make any decision. If a TOC meeting fails to meet the quorum requirement, discussions may proceed, however there shall be no voting or decisions.
© 2018 Cloud Native Computing Foundation
4
Agenda
© 2018 Cloud Native Computing Foundation
5
CNCF Project Proposals: RFC DD
Upcoming Project Proposals:
Backlog:
© 2018 Cloud Native Computing Foundation
6
TiKV
© 2018 Cloud Native Computing Foundation
7
An Open-Source Distributed Transactional Key-Value Store
Make Data Creative
Agenda
2018 PingCAP
History
2018 PingCAP
Community
Stars
Contributors
2018 PingCAP
Outside Institutional Contributors
2018 PingCAP
Pain Point
2018 PingCAP
TiKV Architecture
Overview
TiDB
TiDB
Worker
Spark Driver
TiKV Cluster (Storage)
Metadata
TiKV
TiKV
TiKV
Data location
Job
TiSpark
DistSQL API
TiKV
TiDB
TSO/Data location
Worker
Worker
Spark Cluster
TiDB Cluster
TiDB
DistSQL API
PD
PD Cluster
TiKV
TiKV
TiDB
KV API
MySQL
MySQL
Spark SQL
PD
PD
Spark SQL
2018 PingCAP
TiKV Architecture
RocksDB
Raft
Transaction
Txn KV API
Coprocessor API
RocksDB
Raft
Transaction
Txn KV API
Coprocessor API
RocksDB
Raft
Transaction
Txn KV API
Coprocessor API
Raft Group
Client
gRPC
TiKV Instance
TiKV Instance
TiKV Instance
gRPC
gRPC
PD Cluster
2018 PingCAP
Technical highlights
2018 PingCAP
Example 1: SQL above TiKV
Node1
Node2
Node3
Node4
MySQL Network Protocol
SQL Parser
Cost-based Optimizer
Distributed Executor (Coprocessor)
ODBC/JDBC
MySQL Client
Any ORM which supports MySQL
TiDB
TiKV
2018 PingCAP
Relational -> KV
ID | Name | |
1 | Edward | h@pingcap.com |
2 | Tom | tom@pingcap.com |
... | |
user/1 | Edward,h@pingcap.com |
user/2 | Tom,tom@pingcap.com |
... | |
In TiKV
-∞
+∞
(-∞, +∞)
Sorted map
“User” Table
Some region...
2018 PingCAP
SQL -> Parser -> Optimizer -> Coprocessor
2018 PingCAP
Example 2: Distributed Object Storage
TiKV
2018 PingCAP
YCSB Benchmark (June 2018)
Environment:
100% Insert TPS 82500 ops/s
Insert Latency Avg(us): 63824, Min(us): 577, Max(us): 1895394, 95th(us): 118000, 99th(us): 169000
100% Read QPS 157400 ops/s
Read Latency Avg(us): 36308, Min(us): 280, Max(us): 12360007, 95th(us): 94000, 99th(us): 164000
2018 PingCAP
Comparison
| Cassandra | MongoDB | TiKV |
Auto-scaling | Y | Optional | Y |
ACID transaction | N | Maybe? | Y |
Strong consistency replication | Optional | N | Y |
Geo-based replication | N | N | Y |
Self-healing | N | N | Y |
SQL Compatibility | Partial (CQL) | N | Complete (with TiDB) |
2018 PingCAP
Dynamic Split and Merge
Region A
Region A
Region B
Region A
Region A
Region B
Split
Region A
Region A
Region B
Merge
2018 PingCAP
Hotspot Removal
*Region A*
*Region B*
Region A
Region B
Workload
*Region A*
Region B
Region A
*Region B*
Workload
Workload
Hotspot Schedule
(Raft leader transfer)
2018 PingCAP
Cloud-Native Progress
...
...
2018 PingCAP
Cloud-Native Synergy
2018 PingCAP
TiKV In Production
Who’s Using TiKV?
200+ Companies
2018 PingCAP
Ele.me ( ) Before TiKV
2018 PingCAP
Ele.me ( ) After TiKV
2018 PingCAP
Demo
2018 PingCAP
Ask CNCF to accept TiKV as Incubation or Sandbox-level project.
2018 PingCAP
More Contribution, Bigger Community
2018 PingCAP
Would you be our TOC sponsor? (Bryan Cantrill volunteers)
Thank You!
Ed Huang (huang@pingcap.com; @c4pt0r)
Kevin Xu (kevin@pingcap.com; @kevinsxu)
2018 PingCAP
WG Updates
© 2018 Cloud Native Computing Foundation
36
CNCF WG Updates
© 2018 Cloud Native Computing Foundation
37
Project Review/Backlog
© 2018 Cloud Native Computing Foundation
38
Upcoming Events
© 2018 Cloud Native Computing Foundation
39
Upcoming Meetings
© 2018 Cloud Native Computing Foundation
40
Open Q&A
© 2018 Cloud Native Computing Foundation
41
Thank You
© 2018 Cloud Native Computing Foundation
42