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

scheduler: support changing batch for slow score scheduler #8888

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Dec 10, 2024

What problem does this PR solve?

Issue Number: ref #7156

What is changed and how does it work?

After this PR, we can change the batch size through pd-ctl:

scheduler config evict-slow-store-scheduler set batch 10

Check List

Tests

  • Unit test

Release note

None.

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue dco-signoff: yes Indicates the PR's author has signed the dco. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 10, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 51.85185% with 13 lines in your changes missing coverage. Please review.

Project coverage is 76.27%. Comparing base (093b841) to head (723ef24).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8888      +/-   ##
==========================================
- Coverage   76.30%   76.27%   -0.04%     
==========================================
  Files         465      465              
  Lines       70659    70682      +23     
==========================================
- Hits        53916    53911       -5     
- Misses      13395    13410      +15     
- Partials     3348     3361      +13     
Flag Coverage Δ
unittests 76.27% <51.85%> (-0.04%) ⬇️

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

@rleungx
Copy link
Member Author

rleungx commented Dec 11, 2024

/retest

1 similar comment
@rleungx
Copy link
Member Author

rleungx commented Dec 11, 2024

/retest

@rleungx
Copy link
Member Author

rleungx commented Jan 8, 2025

/cc @LykxSassinator

Copy link
Contributor

ti-chi-bot bot commented Jan 8, 2025

@rleungx: GitHub didn't allow me to request PR reviews from the following users: LykxSassinator.

Note that only tikv members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @LykxSassinator

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 kubernetes-sigs/prow repository.

@@ -49,6 +49,7 @@ type evictSlowStoreSchedulerConfig struct {
// Duration gap for recovering the candidate, unit: s.
RecoveryDurationGap uint64 `json:"recovery-duration"`
EvictedStores []uint64 `json:"evict-stores"`
Batch int `json:"batch"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a TODO note here, reminding that this PR might also need to be applied to evict-slow-trend-scheduler in future work if necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Copy link
Contributor

@LykxSassinator LykxSassinator left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

ti-chi-bot bot commented Jan 20, 2025

@LykxSassinator: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

LGTM

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 kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jan 20, 2025
@rleungx
Copy link
Member Author

rleungx commented Jan 20, 2025

@okJiang PTAL

@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 21, 2025
Copy link
Contributor

ti-chi-bot bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lhy1024, LykxSassinator, okJiang

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jan 21, 2025
Copy link
Contributor

ti-chi-bot bot commented Jan 21, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-20 03:09:35.130932362 +0000 UTC m=+63902.461851766: ☑️ agreed by lhy1024.
  • 2025-01-21 08:07:59.265129084 +0000 UTC m=+168206.596048483: ☑️ agreed by okJiang.

@ti-chi-bot ti-chi-bot bot merged commit b66703c into tikv:master Jan 21, 2025
23 of 25 checks passed
@rleungx rleungx deleted the batch-evict-slow branch January 21, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants