tikv/tikv

Reduce prometheus metrics on performance critical path

Open

#2,581 opened on 2017年12月13日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Rust (15,922 stars) (2,189 forks)batch import
component/performancecomponent/storagehelp wantedtype/enhancement

説明

Currently, the bottleneck of RawKV read is the scheduler thread, it runs 100% CPU while the raftstore runs 60%, the network, and disks are not full either.

Based on the flame graph[0] of the scheduler, we can easily find out that Prometheus consumes about 10% CPU time. 10% is not big but definitely not small, there is more room for the read performance!

read-scheduler

[0] https://gist.github.com/overvenus/eb3033344df4fd4a2cf707708a2832b4

コントリビューターガイド