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) #3525

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Mar 25, 2021

cherry-pick #3523 to release-5.0
You can switch your code base to this Pull Request by using git-extras:

# In pd repo:
git pr https://github.com/tikv/pd/pull/3525

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/pd.git pr/3525:release-5.0-c4f22fd42119

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

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has not been approved.

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-srebot
Copy link
Contributor Author

@nolouch please accept the invitation then you can push to the cherry-pick pull requests.
https://github.com/ti-srebot/pd/invitations

@nolouch
Copy link
Contributor

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: 7751530

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

sonarcloud bot commented Mar 25, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@nolouch
Copy link
Contributor

nolouch commented Mar 25, 2021

/run-integration-ddl-test

@codecov
Copy link

codecov bot commented Mar 25, 2021

Codecov Report

Merging #3525 (7751530) into release-5.0 (9a70cb5) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-5.0    #3525      +/-   ##
===============================================
- Coverage        74.59%   74.45%   -0.14%     
===============================================
  Files              245      245              
  Lines            24063    24063              
===============================================
- Hits             17949    17916      -33     
- Misses            4500     4526      +26     
- Partials          1614     1621       +7     
Flag Coverage Δ
unittests 74.45% <100.00%> (-0.14%) ⬇️

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

Impacted Files Coverage Δ
server/grpc_service.go 46.60% <100.00%> (-1.02%) ⬇️
server/tso/global_allocator.go 70.80% <0.00%> (-6.57%) ⬇️
server/id/id.go 76.19% <0.00%> (-4.77%) ⬇️
server/tso/allocator_manager.go 73.75% <0.00%> (-4.49%) ⬇️
server/election/leadership.go 83.52% <0.00%> (-3.53%) ⬇️
server/cluster/coordinator.go 74.28% <0.00%> (-0.72%) ⬇️
server/tso/tso.go 71.16% <0.00%> (-0.62%) ⬇️
server/member/member.go 64.67% <0.00%> (-0.55%) ⬇️
client/client.go 72.24% <0.00%> (+0.13%) ⬆️
... and 6 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 9a70cb5...7751530. Read the comment docs.

@ti-chi-bot ti-chi-bot merged commit 0b1f355 into tikv:release-5.0 Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants