-
Notifications
You must be signed in to change notification settings - Fork 710
sql-infra: add resource control feature #12353
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
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
896f94c
updated 3 articles
hfxsd 7e7d291
Create sql-statement-alter-resource-group.md
hfxsd 8c6f68e
Update sql-statement-alter-user.md
hfxsd 910f132
added CREATE RESOURCE GROUP
hfxsd 722bd30
translate 6 more docs
hfxsd 72d5153
add part of resource control doc
hfxsd 3862e03
Merge remote-tracking branch 'upstream/master' into resource-control
hfxsd 5647598
finish translation except ru.md
hfxsd 4774963
removed blank line
hfxsd 1971ca2
Apply suggestions from code review
hfxsd 25f2408
Update tidb-resource-control.md
hfxsd 4d59f3b
Update tidb-resource-control.md
hfxsd 589edfb
Apply suggestions from code review
hfxsd bb2f7e1
Merge remote-tracking branch 'upstream/master' into resource-control
hfxsd 4356301
Merge remote-tracking branch 'upstream/master' into resource-control
hfxsd d48a5d6
draft done
hfxsd 53822c4
Update tidb-resource-control.md
hfxsd e405d6e
sync brian's latest updates
hfxsd 9a4f4ba
Update tidb-resource-control.md
hfxsd f9d992f
Apply suggestions from code review
hfxsd 5fedf74
fix links
hfxsd 413aba2
Update tidb-resource-control.md
hfxsd 60f6d30
translated the newly added content
hfxsd 3b9915b
Apply suggestions from code review
hfxsd ee9415a
Update TOC.md
hfxsd 464d30c
polished wording
hfxsd 3fa096f
Update tidb-resource-control.md
hfxsd e522fcd
Update information-schema-resource-groups.md
hfxsd d93d8a7
Apply suggestions from code review
hfxsd 3c6e57b
Apply suggestions from code review
hfxsd e897300
Apply suggestions from code review
hfxsd 7c73827
Update system-variables.md
hfxsd 6804d8c
Update tikv-configuration-file.md
hfxsd 0aec93b
Update tidb-resource-control.md
hfxsd ba6590a
Merge remote-tracking branch 'upstream/master' into resource-control
hfxsd 63381ba
sync cn commits
hfxsd b1db47c
Apply suggestions from code review
hfxsd bd7ce25
Apply suggestions from code review
hfxsd 5a1207c
Update tidb-resource-control.md
hfxsd a46e7a0
Update tidb-resource-control.md
hfxsd 757aa33
Update tidb-resource-control.md
hfxsd b3d6c4b
Merge remote-tracking branch 'upstream/master' into resource-control
hfxsd 76494af
Apply suggestions from code review
hfxsd c8edbda
Update grafana-resource-control-dashboard.md
hfxsd 4ea89b4
Apply suggestions from code review
hfxsd cccc9a2
Update grafana-tikv-dashboard.md
hfxsd 070ea08
Update information-schema-processlist.md
hfxsd 235af05
Update sql-statement-drop-resource-group.md
hfxsd 71c07b0
add the note that this feature does not support serverless tier
hfxsd 7b6e581
Update tidb-resource-control.md
hfxsd 0923d0b
Apply suggestions from code review
hfxsd cefd18e
Update tidb-resource-control.md
hfxsd 155f791
Update tidb-resource-control.md
hfxsd 0f7a666
Apply suggestions from code review
hfxsd fa3e83d
Update tidb-resource-control.md
hfxsd 7a59a5b
Update information-schema/information-schema-resource-groups.md
BornChanger b21d6b7
Update information-schema/information-schema-resource-groups.md
BornChanger 6c6de80
Update sql-statements/sql-statement-alter-resource-group.md
BornChanger 2d1f36d
Update sql-statements/sql-statement-alter-resource-group.md
BornChanger 5e1fd62
Apply suggestions from code review
hfxsd 1c63af5
Apply suggestions from code review
hfxsd 22e2cd1
Update TOC-tidb-cloud.md
hfxsd c7b13a1
Update TOC-tidb-cloud.md
hfxsd 3ddf4a9
Update tidb-resource-control.md
hfxsd 12e8dc4
Update grafana-resource-control-dashboard.md
hfxsd c7fd54e
Update grafana-resource-control-dashboard.md
hfxsd d84412f
add the customcontent for TiDB Cloud
qiancai 0d85e11
Update tidb-resource-control.md
hfxsd 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| title: Key Monitoring Metrics of Resource Control | ||
| summary: Learn some key metrics displayed on the Grafana Resource Control dashboard. | ||
| --- | ||
|
|
||
| # Key Monitoring Metrics of Resource Control | ||
|
|
||
| If you use TiUP to deploy the TiDB cluster, the monitoring system (Prometheus & Grafana) is deployed at the same time. For more information, see [Overview of the Monitoring Framework](/tidb-monitoring-framework.md). | ||
|
|
||
| The Grafana dashboard is divided into a series of sub dashboards which include Overview, PD, TiDB, TiKV, Node\_exporter, Disk Performance, and Performance\_overview. | ||
|
|
||
| If your cluster has used the [Resource Control](/tidb-resource-control.md) feature, you can get an overview of the resource consumption status from the Resource Control dashboard. | ||
|
|
||
| This document describes some key monitoring metrics displayed on the Resource Control dashboard. | ||
|
|
||
| ## Metrics about Request Unit | ||
|
|
||
| - RU: the [Request Unit (RU)](/tidb-resource-control.md#what-is-request-unit-ru) consumption information of each resource group, calculated in real time. `total` is the sum of the Request Units consumed by all Resource Groups. The Request Unit consumption of each resource group should be equal to the sum of its read consumption (Read Request Unit) and write consumption (Write Request Unit). | ||
| - RU Per Query: the average number of Request Units consumed by each SQL statement per second. It is obtained by dividing the above RU metric by the number of SQL statements executed per second. | ||
| - RRU: the Read Request Unit consumption information of each resource group, calculated in real time. `total` is the sum of the Read Request Units consumed by all Resource Groups. | ||
| - RRU Per Query: the average number of Read Request Units consumed by each SQL statement per second. It is obtained by dividing the above RRU metric by the number of SQL statements executed per second. | ||
| - WRU: the Write Request Unit consumption information of each resource group, calculated in real time. `total` is the sum of the Write Request Units consumed by all Resource Groups. | ||
| - WRU Per Query: the average number of Write Request Units consumed by each SQL statement per second. It is obtained by dividing the above WRU metric by the number of SQL statements executed per second. | ||
|
|
||
| ## Metrics about resources | ||
|
|
||
| - KV Request Count: the number of KV requests for each resource group, calculated per second. The requests are divided into read and write types. `total` is the sum of the KV requests for all Resource Groups. | ||
| - KV Request Count Per Query: the average number of read and write KV requests by each SQL statement per second. It is obtained by dividing the above KV Request Count metric by the number of SQL statements executed per second. | ||
| - Bytes Read: the amount of data read by each Resource Group, calculated per second. `total` is the sum of the data read by all Resource Groups. | ||
| - Bytes Read Per Query: the average amount of data read by each SQL statement per second. It is obtained by dividing the above Bytes Read metric by the number of SQL statements executed per second. | ||
| - Bytes Written: the amount of data written by each Resource Group, calculated in real time. `total` is the sum of the data written by all Resource Groups. | ||
| - Bytes Written Per Query: the average amount of data written by each SQL statement per second. It is obtained by dividing the above Bytes Written metric by the number of SQL statements executed per second. | ||
| - KV CPU Time: the KV layer CPU time consumed by each Resource Group, calculated in real time . `total` is the sum of the KV layer CPU time consumed by all Resource Groups. | ||
| - KV CPU Time Per Query: the average KV layer CPU time consumed by each SQL statement per second. It is obtained by dividing the above KV CPU Time metric by the number of SQL statements executed per second. | ||
| - SQL CPU Time: the SQL layer CPU time consumed by each Resource Group, calculated in real time. `total` is the sum of the SQL layer CPU time consumed by all Resource Groups. | ||
| - SQL CPU Time Per Query: the average SQL layer CPU time consumed by each SQL statement per second. It is obtained by dividing the above SQL CPU Time metric by the number of SQL statements executed per second. | ||
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.