How we doubled system read throughput with only 26 lines of code

CNCF Project Online program

Recorded: Friday July 31, 2020

Download Slides

Program Speakers: Minghua Tang, Infrastructure Engineer @PingCAP

TiKV is a strongly consistent key-value database built upon the Raft algorithm. It stores data in basic units called Regions. Multiple replicas of a Region form a Raft group. When a read hotspot appears in a Region, the Region leader can become a read bottleneck for the entire system. In this situation, enabling the Follower Read feature can significantly reduce the load on the leader and improve the read throughput of the whole system by balancing the load among multiple followers. In this talk, we will walk you through the TiKV architecture, why we introduced Follower Read, and how we implemented it.