schedule: preserve isolation across target layouts - #11284
YuhaoZhang00 wants to merge 1 commit into
Conversation
Signed-off-by: Yuhao Zhang <yhzhang00@outlook.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @YuhaoZhang00. 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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11284 +/- ##
==========================================
+ Coverage 79.78% 79.85% +0.06%
==========================================
Files 546 546
Lines 79537 79565 +28
==========================================
+ Hits 63461 63535 +74
+ Misses 11690 11667 -23
+ Partials 4386 4363 -23
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Issue Number: ref #11278, ref #11275
A higher weighted isolation score does not prove that a configured
IsolationLevelremains satisfied. WithLocationLabels=[zone,host]and host isolation, a four-peer move can increase the score from 303 to 401 while placing two peers on the same host. Automatic merge can also align a valid source Region to a target that is fully replicated but violates its isolation requirement.The scope also includes already-degraded sources tracked in #11278:
A/a, A/a, A/b, A/c, B/dcan becomeA/a, A/a, A/b, B/d, B/d, increasing the score from 405 to 602 and same-host peer pairs from one to two. This case is not fixed by the current draft: the peer-move guard below only preserves an already-satisfied isolation level.What is changed and how does it work?
Isolation is evaluated per effective rule. The change adds no default host requirement or cross-rule host-concentration policy. The accumulated-layout fix in #11204 may merge first. This PR owns the subsequent isolation-validation integration with scatter.
Check List
Tests
make gotest PACKAGES='./pkg/schedule/placement ./pkg/schedule/filter ./pkg/schedule/checker' GOTEST_ARGS='./pkg/schedule/placement ./pkg/schedule/filter ./pkg/schedule/checker -count=1': passed.pkg/schedule/schedulerstests: passed on retry. The first run failed the existingTestEvictSlowTrendBasicFuncstimestamp-order assertion; no placement code is involved in that assertion.make checkfor the touched packages: passed.Before ready for review
Release note