Skip to content

Commit

Permalink
pd: add more region health info (#17449) (#17455)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored May 9, 2024
1 parent e5a0f72 commit f3562a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions daily-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ You can locate the slow SQL statement executed in the cluster. Then you can opti

![Region panel](/media/region-panel.png)

+ `miss-peer-region-count`: The number of Regions without enough replicas. This value is not always greater than `0`.
+ `down-peer-region-count`: The number of Regions with an unresponsive peer reported by the Raft leader.
+ `empty-region-count`: The number of empty Regions, with a size of smaller than 1 MiB. These Regions are generated by executing the `TRUNCATE TABLE`/`DROP TABLE` statement. If this number is large, you can consider enabling `Region Merge` to merge Regions across tables.
+ `extra-peer-region-count`: The number of Regions with extra replicas. These Regions are generated during the scheduling process.
+ `empty-region-count`: The number of empty Regions, generated by executing the `TRUNCATE TABLE`/`DROP TABLE` statement. If this number is large, you can consider enabling `Region Merge` to merge Regions across tables.
+ `learner-peer-region-count`: The number of Regions with the learner peer. The sources of learner peers can be various, for example, the learner peers in TiFlash, and the learner peers included in the configured Placement Rules.
+ `miss-peer-region-count`: The number of Regions without enough replicas. This value is not always greater than `0`.
+ `offline-peer-region-count`: The number of Regions during the peer offline process.
+ `oversized-region-count`: The number of Regions with a size larger than `region-max-size` or `region-max-keys`.
+ `pending-peer-region-count`: The number of Regions with outdated Raft logs. It is normal that a few pending peers are generated in the scheduling process. However, it is not normal if this value is large for a period of time (longer than 30 minutes).
+ `down-peer-region-count`: The number of Regions with an unresponsive peer reported by the Raft leader.
+ `offline-peer-region-count`: The number of Regions during the offline process.
+ `undersized-region-count`: The number of Regions with a size smaller than `max-merge-region-size` or `max-merge-region-keys`.

Generally, it is normal that these values are not `0`. However, it is not normal that they are not `0` for quite a long time.

Expand Down
Binary file modified media/region-panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f3562a9

Please sign in to comment.