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

schedule: add metrcis for region scatter #3582

Merged
merged 7 commits into from
Apr 15, 2021

Conversation

Yisaer
Copy link
Contributor

@Yisaer Yisaer commented Apr 12, 2021

Signed-off-by: yisaer disxiaofei@163.com

What problem does this PR solve?

Add metrics in region scatter

image

What is changed and how it works?

Release note

  • No release note

@ti-chi-bot ti-chi-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 12, 2021
@ti-chi-bot ti-chi-bot requested review from lhy1024 and rleungx April 12, 2021 10:16
@Yisaer Yisaer added 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. labels Apr 12, 2021
Signed-off-by: yisaer <disxiaofei@163.com>
@Yisaer Yisaer force-pushed the add_metrics_for_scatter branch from 8142fcd to 42e13ff Compare April 13, 2021 04:27
@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

Merging #3582 (da73cd9) into master (b6e80b2) will decrease coverage by 0.07%.
The diff coverage is 81.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3582      +/-   ##
==========================================
- Coverage   74.61%   74.53%   -0.08%     
==========================================
  Files         245      245              
  Lines       24100    24128      +28     
==========================================
+ Hits        17983    17985       +2     
- Misses       4506     4525      +19     
- Partials     1611     1618       +7     
Flag Coverage Δ
unittests 74.53% <81.81%> (-0.08%) ⬇️

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

Impacted Files Coverage Δ
server/schedule/region_scatterer.go 87.04% <80.00%> (-1.58%) ⬇️
server/schedule/filter/filters.go 90.76% <100.00%> (ø)
server/schedule/metrics.go 100.00% <100.00%> (ø)
server/tso/global_allocator.go 70.80% <0.00%> (-6.57%) ⬇️
server/tso/tso.go 69.93% <0.00%> (-2.46%) ⬇️
server/tso/allocator_manager.go 73.25% <0.00%> (-2.16%) ⬇️
tools/pd-ctl/pdctl/command/operator.go 65.99% <0.00%> (-1.22%) ⬇️
server/handler.go 41.97% <0.00%> (-0.50%) ⬇️
server/server.go 73.36% <0.00%> (-0.16%) ⬇️
client/client.go 71.82% <0.00%> (-0.14%) ⬇️
... and 4 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 b6e80b2...da73cd9. Read the comment docs.

Signed-off-by: Song Gao <disxiaofei@163.com>
@Yisaer Yisaer marked this pull request as ready for review April 13, 2021 05:19
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 13, 2021
@Yisaer
Copy link
Contributor Author

Yisaer commented Apr 13, 2021

/cc @rleungx

@rleungx
Copy link
Member

rleungx commented Apr 13, 2021

BTW, can we add the related information of the filter?

Yisaer added 3 commits April 13, 2021 15:29
Signed-off-by: yisaer <disxiaofei@163.com>
Signed-off-by: yisaer <disxiaofei@163.com>
Signed-off-by: yisaer <disxiaofei@163.com>
}

// StoreBusyFilter
type storeBusyFilter struct {
Copy link
Member

Choose a reason for hiding this comment

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

How about using StoreStateFilter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

Signed-off-by: yisaer <disxiaofei@163.com>
@Yisaer Yisaer requested a review from rleungx April 14, 2021 06:41
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 14, 2021
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lhy1024
  • nolouch

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 Apr 15, 2021
@nolouch
Copy link
Contributor

nolouch commented Apr 15, 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: 147cc10

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

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rleungx rleungx added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 15, 2021
@rleungx
Copy link
Member

rleungx commented Apr 15, 2021

/merge

@ti-chi-bot
Copy link
Member

@rleungx: 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.

@Yisaer
Copy link
Contributor Author

Yisaer commented Apr 15, 2021

/merge

@ti-chi-bot
Copy link
Member

@Yisaer: 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.

@Yisaer Yisaer merged commit b8c3d14 into tikv:master Apr 15, 2021
ti-srebot pushed a commit to ti-srebot/pd that referenced this pull request Apr 15, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #3595

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

cherry pick to release-5.0 in PR #3596

Yisaer added a commit that referenced this pull request May 10, 2021
* cherry pick #3582 to release-4.0

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

* fix conflict

Signed-off-by: yisaer <disxiaofei@163.com>

Co-authored-by: Song Gao <disxiaofei@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. 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.

6 participants