address codereview

Signed-off-by: marsishandsome <marsishandsome@gmail.com>
This commit is contained in:
marsishandsome 2021-06-15 18:02:11 +08:00
parent 917e5b59e0
commit 1af04edef3
1 changed files with 5 additions and 1 deletions

View File

@ -53,12 +53,16 @@ The TiKV placement driver is the cluster manager of TiKV, which periodically and
## Store
The **Store** is a TiKV instance. A Store stores multiple peers. There is a [RocksDB](https://rocksdb.org) database within each **Store** and it stores data into the local disk.
A **Store** refers to the storage node in the TiKV cluster (an instance of tikv-server). Each store has a corresponding TiKV instance.
## Region
TiKV shards continuous ranges of keys into **Regions**, and replicates **Regions** via the Raft protocol. When data size increases until reaching a threshold, a Region will be split into multiple. Conversely, if the size of the Region shrinks due to data deletion, two adjacent Regions can be merged into one.
## Peer
A replica of a Region is called a peer. Multiple peers of the same Region replicate data via the Raft consensus algorithm, so peers are also members of a Raft instance.
## Node
A TiKV **Store** is a physical node in the cluster, which could be a virtual machine, a container, etc. Within each Node, there can be one or more stores.