-
Notifications
You must be signed in to change notification settings - Fork 696
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
grafana: supply the explanation on the metrics of Flow-Control in TiKV. #15720
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
572522d
Add temp.md
qiancai c58b5a8
Delete temp.md
qiancai d20e8b6
Update grafana-tikv-dashboard.md
qiancai 73ca55e
Create tikv-dashboard-flow-control.png
qiancai da8ceb0
Update grafana-tikv-dashboard.md
qiancai 89fec11
Merge branch 'supply_flow_control-15670' of https://github.com/qianca…
qiancai 86e1b8e
Apply suggestions from code review
qiancai eae5548
Apply suggestions from code review
qiancai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,21 @@ This section provides a detailed description of these key metrics on the **TiKV- | |
|
||
 | ||
|
||
### Flow Control | ||
|
||
- Scheduler flow: The scheduler traffic on each TiKV instance in real time. | ||
- Scheduler discard ratio: The rejection ratio of scheduler requests on each TiKV instance. If this ratio is greater than 0, it indicates that flow control exists. When `Compaction pending bytes` exceeds its threshold, TiKV will linearly increase the `Scheduler Discard Ratio` based on the exceeded portion. The client will retry the rejected requests automatically. | ||
- Throttle duration: The blocked duration for the execution of the scheduler requests when flow control is triggered due to too many L0 files. If this metric has values, it indicates that flow control exists. | ||
- Scheduler throttled CF: The CF that triggers RocksDB throttling when the flow control threshold is reached. | ||
- Flow controller actions: The actions that trigger RocksDB throttling when the flow control threshold is reached. | ||
- Flush/L0 flow: The traffic of flush and L0 compaction for different CFs of RocksDB on each TiKV instance. | ||
- Flow control factors: The factors related to triggering RocksDB throttling. | ||
- Compaction pending bytes: The size of the RocksDB data awaiting compaction in real time on each TiKV instance. | ||
- Txn command throttled duration: The blocked duration for commands related to transactions due to throttling. Under normal circumstances, this metric is 0. | ||
- Non-txn command throttled duration: The blocked duration for other commands due to throttling. Under normal circumstances, this metric is 0. | ||
Comment on lines
+198
to
+199
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 最后这两个,Txn command throttled duration、Non-txn command throttled duration 截图中没有 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
 | ||
|
||
### Scheduler | ||
|
||
- Scheduler stage total: The number of commands at each stage per second. There should not be a lot of errors in a short time. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in https://github.com/pingcap/docs/pull/15765/files