Adopt Plumbing CNCF Graduated App Definition and Development / Database

Technology Guide

TiKV

License: Apache-2.0

TiKV Logo

Field Guide

Complete Guide

TiKV is a distributed, transactional key-value store written in Rust that provides horizontal scalability, strong consistency, and ACID transactions across a cluster. It is the storage layer underneath TiDB and a CNCF Graduated project inspired in part by Google’s Spanner.

Data is range-partitioned into “Regions” of roughly 96 MiB, each replicated via the Raft consensus algorithm to tolerate node failures. The Placement Driver (PD) is a separate cluster that tracks region metadata and orchestrates splits, merges, and rebalancing based on live load and size metrics. The per-node storage engine is RocksDB (with the Titan extension for large values) and, more recently, the Raft Engine for the Raft log. Transactions are built on a Percolator-style two-phase commit protocol using timestamps from PD, providing snapshot isolation and serializable transactions across regions. Clients can use either the raw KV API or the transactional API, and gRPC is the wire protocol.

TiKV powers TiDB’s HTAP platform and is also used directly as a standalone store by projects that need a scalable, consistent KV layer, including JuiceFS, TiFS, and various geospatial and indexing systems.

CNCF Project

Cloud Native Computing Foundation

Accepted: 2018-08-28
Incubating: 2018-08-28
Graduated: 2020-09-02

Community

Join the conversation

No articles found for TiKV yet. Check back soon!