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

metrics: let tso processing time not include consumption on the network #3523

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented Mar 25, 2021

Signed-off-by: nolouch nolouch@gmail.com

What problem does this PR solve?

Sometimes we see the handle tso duration is high in the PD side, which usually caused by the network.
image

What is changed and how it works?

Check List

Tests

  • Unit test

Release note

  • metrics: let tso processing time not include consumption on the network

@nolouch nolouch added needs-cherry-pick-release-5.0 The PR needs to cherry pick to release-5.0 branch. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. labels Mar 25, 2021
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 25, 2021
Copy link
Contributor

@Yisaer Yisaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Yisaer
  • lhy1024

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 25, 2021
@nolouch
Copy link
Contributor Author

nolouch commented Mar 25, 2021

/merge

@ti-chi-bot
Copy link
Member

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 3cbd83b

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 25, 2021
@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #3523 (3cbd83b) into master (c3f39da) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3523      +/-   ##
==========================================
- Coverage   74.59%   74.59%   -0.01%     
==========================================
  Files         245      245              
  Lines       24068    24068              
==========================================
- Hits        17954    17953       -1     
  Misses       4507     4507              
- Partials     1607     1608       +1     
Flag Coverage Δ
unittests 74.59% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/grpc_service.go 47.85% <100.00%> (ø)
server/tso/global_allocator.go 70.80% <0.00%> (-8.03%) ⬇️
server/tso/local_allocator.go 73.23% <0.00%> (-7.05%) ⬇️
server/region_syncer/server.go 83.33% <0.00%> (-6.07%) ⬇️
client/base_client.go 83.24% <0.00%> (-2.71%) ⬇️
server/tso/tso.go 69.93% <0.00%> (-2.46%) ⬇️
server/config/persist_options.go 91.33% <0.00%> (-0.79%) ⬇️
server/server.go 72.91% <0.00%> (-0.31%) ⬇️
server/tso/allocator_manager.go 76.24% <0.00%> (+1.16%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c690318...3cbd83b. Read the comment docs.

@ti-chi-bot ti-chi-bot merged commit c4f22fd into tikv:master Mar 25, 2021
ti-srebot pushed a commit to ti-srebot/pd that referenced this pull request Mar 25, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #3524

ti-srebot pushed a commit to ti-srebot/pd that referenced this pull request Mar 25, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.0 in PR #3525

ti-chi-bot pushed a commit that referenced this pull request Mar 25, 2021
…rk (#3523) (#3525)

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: ShuNing <nolouch@gmail.com>
ti-chi-bot added a commit that referenced this pull request May 8, 2021
…rk (#3523) (#3524)

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: ShuNing <nolouch@gmail.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. needs-cherry-pick-release-5.0 The PR needs to cherry pick to release-5.0 branch. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants