tikv-dev-guide
tikv-dev-guide copied to clipboard
Write down the first version of Understanding TiKV Overview
https://github.com/tisonkun/tikv-dev-guide/blob/main/src/understanding-tikv/overview/intro.md
@tisonkun I want to write this chapter. Please assign to me, thanks~
Reference: https://docs.pingcap.com/tidb/dev/tikv-overview https://tikv.org/deep-dive/introduction/
@ystaticy assigned. Go ahead!
Hi, @tisonkun I found there is a TiKV intro document pr: https://github.com/tikv/tikv-dev-guide/pull/29
I want to know what is the different with TiKV Overview and TiKV Intro ?
This layout is designed by @andylokandy . IIRC he states that TiKV Overview can be deeper than TiKV Intro. But if you cannot find the different, you can start with an intro about Txn KV or Raw KV. Content matters.
@tisonkun
I think I can describe each logic layer of TiKV in more detail.
In order to let developers have a more systematic understanding of tikv.
I can Introduce as follows:
- The functions of tikv and the corresponding code logic layer; e.g. server layer,storage layer,raft layer, rocksdb layer
- The logic layer how to interact with other layers and how to interact with PD. e.g. PD schedule region in TiKV cluster; TiKV get TSO and GC safepoint through PD client
- And the inspiration source of the design or the reference paper. e.g. Transaction Design is from Percolator ,and the inspiration source of raftkv is from etcd raft.
- And the important functions of each module. e.g. rpc service,GC logic in TiKV server layer
What do you think of above-mentioned ?