Skip to content

Commit

Permalink
overview, media: add TiSpark and update architecture image
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Aug 21, 2018
1 parent 733a5b0 commit d88895c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified media/tidb-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ Read the [Roadmap](https://github.com/pingcap/docs/blob/master/ROADMAP.md).

## TiDB architecture

To better understand TiDBs features, you need to understand the TiDB architecture.
To better understand TiDB's features, you need to understand the TiDB architecture. The TiDB cluster includes three key components: the TiDB server, the PD server, and the TiKV server. In addition, TiDB also provides the [TiSpark](https://github.com/pingcap/tispark/) component to satisfy the complex OLAP requirements.

![image alt text](media/tidb-architecture.png)

The TiDB cluster has three components: the TiDB server, the PD server, and the TiKV server.

### TiDB server

The TiDB server is in charge of the following operations:
Expand Down Expand Up @@ -93,6 +91,10 @@ As a cluster, PD needs to be deployed to an odd number of nodes. Usually it is r

The TiKV server is responsible for storing data. From an external view, TiKV is a distributed transactional Key-Value storage engine. Region is the basic unit to store data. Each Region stores the data for a particular Key Range which is a left-closed and right-open interval from StartKey to EndKey. There are multiple Regions in each TiKV node. TiKV uses the Raft protocol for replication to ensure the data consistency and disaster recovery. The replicas of the same Region on different nodes compose a Raft Group. The load balancing of the data among different TiKV nodes are scheduled by PD. Region is also the basic unit for scheduling the load balance.

### TiSpark

TiSpark deals with the complex OLAP requirements. TiSpark makes Spark SQL directly run on the storage layer of the TiDB cluster, combines the advantages of the distributed TiKV cluster, and integrates into the big data ecosystem. With TiSpark, TiDB can support both OLTP and OLAP scenarios in one cluster, so the users never need to worry about data synchronization.

## Features

### Horizontal scalability
Expand Down

0 comments on commit d88895c

Please sign in to comment.