cherry-pick: scheduler: graceful shutdown implement (#9720)#9790
Conversation
close tikv#9719 Add an is_stopping status to the StoreHeartbeat message. When TiKV receives a SIGTERM, it sets this flag. This change adds a new evict-stopping-store-scheduler to PD, which is analogous to the evict-slow-store-scheduler. It proactively transfers leaders away from nodes by inspecting the is_stopping status from store heartbeats. Signed-off-by: hujiatao0 <hhjjtt110@gmail.com>
|
Hi @hujiatao0. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
89e3543 to
cf3e88f
Compare
|
@hujiatao0: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
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. |
Signed-off-by: hujiatao0 <hhjjtt110@gmail.com>
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (66.96%) is below the target coverage (74.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## release-8.5-20250929-v8.5.0 #9790 +/- ##
===============================================================
- Coverage 75.86% 75.59% -0.28%
===============================================================
Files 462 463 +1
Lines 72355 72684 +329
===============================================================
+ Hits 54893 54943 +50
- Misses 13981 14224 +243
- Partials 3481 3517 +36
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: niubell, okJiang, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9b4c020
into
tikv:release-8.5-20250929-v8.5.0
close #9719
Add an is_stopping status to the StoreHeartbeat message. When TiKV receives a SIGTERM, it sets this flag. This change adds a new evict-stopping-store-scheduler to PD, which is analogous to the evict-slow-store-scheduler. It proactively transfers leaders away from nodes by inspecting the is_stopping status from store heartbeats.
What problem does this PR solve?
Issue Number: Close #9719
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
pingcap/docs/pingcap/docs-cn:Release note