-
Notifications
You must be signed in to change notification settings - Fork 728
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
filter: add label for filterCounter #3320
Conversation
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Codecov Report
@@ Coverage Diff @@
## master #3320 +/- ##
==========================================
+ Coverage 74.76% 74.96% +0.20%
==========================================
Files 243 243
Lines 23223 23246 +23
==========================================
+ Hits 17363 17427 +64
+ Misses 4283 4257 -26
+ Partials 1577 1562 -15
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@rleungx PTAL |
LGTM |
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
server/schedule/filter/filters.go
Outdated
type ComparingFilter interface { | ||
Filter | ||
// GetOldStoreID returns the source store when comparing. | ||
GetOldStoreID() uint64 |
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.
Why not source store
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.
updated.
Signed-off-by: Song Gao <disxiaofei@163.com>
server/schedule/filter/filters.go
Outdated
@@ -166,6 +194,7 @@ type distinctScoreFilter struct { | |||
stores []*core.StoreInfo | |||
policy string | |||
safeScore float64 | |||
oldStore uint64 |
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.
oldStore uint64 | |
srcStore uint64 |
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.
updated.
Signed-off-by: Song Gao <disxiaofei@163.com>
BTW, I think we can add the metrics but hide it |
In some cases, we use tools to export metrics, which may not be convenient for later troubleshooting after the hidden monitoring |
We can manually display the hidden panel, then expose the metrics. |
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: Song Gao <disxiaofei@163.com>
/merge |
@lhy1024: 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/ti-community-prow repository. |
This pull request has been accepted and is ready to merge. Commit hash: 0876018
|
Merge canceled because a new commit is pushed. |
@Yisaer: Your PR has out-of-dated, I have automatically updated it for you. At the same time I will also trigger all tests for you: /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/ti-community-prow repository. |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-3.0 in PR #3358 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #3359 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0-rc in PR #3360 |
* cherry pick #3320 to release-4.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * solve conflict Signed-off-by: Song Gao <disxiaofei@163.com> * fix lint Signed-off-by: Song Gao <disxiaofei@163.com> * fix error Signed-off-by: Song Gao <disxiaofei@163.com> * fix error Signed-off-by: Song Gao <disxiaofei@163.com> Co-authored-by: Song Gao <disxiaofei@163.com> Co-authored-by: ShuNing <nolouch@gmail.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Song Gao <disxiaofei@163.com> Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
What problem does this PR solve?
What is changed and how it works?
Add label for
filterCounter
. If theFilter
filter thetarget
by comparing origin store and target store, we can record the origin store id into metrics.Then we can query the metrics like this:
By this way, we can easily judge whether the filter is reasonable.
Check List
Tests
Release note