pingcap/tidb

Add SQL diagnosis rule: check the storage.block-cache.capacity value

Open

#17 925 ouverte le 10 juin 2020

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Go (6 186 forks)batch import
good first issuehelp wantedtype/enhancement

Métriques du dépôt

Stars
 (40 090 stars)
Métriques de merge PR
 (Merge moyen 14j 4h) (346 PRs mergées en 30 j)

Description

Introduce

The problem of https://github.com/pingcap/tidb/issues/17434 is the storage.block-cache.capacity config value too small.

Task

Add diagnose rule such as : ifstorage.block-cache.capacity < 0.1 * total_server_memory / tikv_count_in_server is true, then append an warning in INSPECTION_RESULT table.

Refer

  • You can query the cluster_config table to get the related config value.
  • You can refer the configInspection implementation in TiDB.

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

Guide contributeur