Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd: add more region health info (#17449) #17457

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading