-
Notifications
You must be signed in to change notification settings - Fork 409
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
Enhance metrics for KVStore write #8472
Enhance metrics for KVStore write #8472
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
…tics into add-metrics-for-kvstore-write
I think we need to add a metric about how many region data have not been committed? Since these data are all resident in memory. |
Can you commit the changes to tiflash_summary.json ? Or provide a preview URL of the changed grafana panels |
There is already metric about this which is called However, there could be some other metrics that could improve this metric, which is more proper and useful?
As a conclusion, I think we should have a metric about how many memories KVStore takes, but I think it could be handled in PR for #8464. In this PR, we are trying to provide a more convenient way to diagnose the problem of big transaction, especially "invisible" uncommitted big transactions that happens between CompactLog and CompactLog. I introduced "Net Write In" for this, so the diagnose could be:
|
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
…tics into add-metrics-for-kvstore-write
|
I think the name is ambiguous and misleading here. What I actually mean is how much memory does this region take when a "unflushing" event takes place, whereas the However, I think I can't come up with a name that is short enough and can convey what I mean... Maybe it could be |
I know what you means. The problems of
I think we need a |
The problem is that it could not give a "global view" of memory consumption of all regions, so we can only record the metrics based on some events like CompactLog. In TiKV, there is a module named I suggest we have a design on this. |
TiFlash has |
Good idea, I will look into that |
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Also push the grafana changes to this PR? |
This pr is held until the grafana is pushed. If other things are OK, could you firstly lgtm this PR? Lots of work taken to build such a metric with about 4+ new panels. |
…tics into add-metrics-for-kvstore-write
/run-all-tests |
…tics into add-metrics-for-kvstore-write
/unhold |
/run-all-tests |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, JinheLin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
@CalvinNeo: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: close #8471
Problem Summary:
(Add a timeseries panel in Raft)
(Add two histogram panels in Raft)
The KVStore memory tracker test
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note