pingcap/tidb

Add SQL diagnosis rule: threshold check for tikv_append_log_duration

Open

#17.941 geöffnet am 11. Juni 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (6.186 Forks)batch import
good first issuehelp wantedtype/enhancement

Repository-Metriken

Stars
 (40.090 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)

Beschreibung

Development Task

When Raft append log duration, P99 Value > 500ms, then append an warning in INSPECTION_RESULT table, this may be caused by:

  • write disk too slow, check the disk latency.
  • It may trigger the RocksDB Write Stall.

Refer

  • You can query the tikv_append_log_duration table to get metrics_schema.tikv_append_log_duration value. Here is the related doc.
  • You can refer the thresholdCheckInspection implementation in TiDB.

If you have any questions or want to discuss something, you can chat in the sig-dashboard slack channel and @ chenshuang.

Contributor Guide