Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
raftstore: improve lease read #1327
This PR tries to fix issue #964
It uses monotonic clocktime to calculate the accurate leader lease.
The sysbench results show that the performance doesn't change significantly.
The sysbench results on a cluster of AWS i2.xlarge 4 nodes(1 node for tidb and pd, 3 nodes for tikv):