-
Notifications
You must be signed in to change notification settings - Fork 411
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
Add metric to record end to end time to pre-handle snapshot #3978
Conversation
Signed-off-by: CalvinNeo <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: CalvinNeo <[email protected]>
@@ -297,6 +298,9 @@ std::vector<UInt64> KVStore::preHandleSSTsToDTFiles( | |||
// Use failpoint to change the expected_block_size for some test cases | |||
fiu_do_on(FailPoints::force_set_sst_to_dtfile_block_size, { expected_block_size = 3; }); | |||
|
|||
Stopwatch watch; | |||
SCOPE_EXIT({ GET_METRIC(tiflash_raft_command_duration_seconds, type_apply_snapshot_predecode_e2e).Observe(watch.elapsedSeconds()); }); |
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.
Maybe just use type_apply_snapshot_predecode
in this line and remove ...
https://github.com/pingcap/tics/blob/b8f711014a9760efbd97eeac7e35bbd4403e1f9f/dbms/src/Storages/DeltaMerge/SSTFilesToDTFilesOutputStream.cpp#L82
... instead of adding a "e2e" panel?
/cc @flowbehappy
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.
I think it may be confusing, especially when we using this metrics, we need to first check the version, and then choose the way to interpret this metric.
Meanwhile, I think the original metric is also useful, since it records the consumed time other than schema builder, which I think is also worth recording.
Signed-off-by: CalvinNeo <[email protected]>
According to discussion, I change "Snapshot Predecode Duration" to record end to end time, and "Snapshot Predecode SST to DT Duration" to record SST -> DT time when using DT rather block method. /cc @JaySon-Huang @flowbehappy |
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
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
Signed-off-by: CalvinNeo <[email protected]>
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
/merge |
@CalvinNeo: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge |
@CalvinNeo: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
/rebuild |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge cancel |
@CalvinNeo should pick this commit JaySon-Huang@58968b2 to fix the changes from #4099 |
/merge |
@JaySon-Huang: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. 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. |
This pull request has been accepted and is ready to merge. Commit hash: 83e57ac
|
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/rebuild |
/run-integration-test |
@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. |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
Signed-off-by: CalvinNeo [email protected]
What problem does this PR solve?
Issue Number: close #3759
Problem Summary:
We have no end to end metrics of prehandling snapshot, it may be hard to diagnostic some problems without this metrics.
What is changed and how it works?
Add a metrics recording end to end time of prehandling snapshot
Check List
Tests
Side effects
Documentation
Release note