-
Notifications
You must be signed in to change notification settings - Fork 500
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
pdms: Choose a suitable pdms to transfer primary when upgrade #5643
Conversation
9707e2d
to
33292f0
Compare
33292f0
to
e91e291
Compare
1222607
to
894d1aa
Compare
7d9575a
to
81c8880
Compare
@csuzhangxc PTAL, thx~ |
/run-all-tests |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5643 +/- ##
===========================================
- Coverage 61.47% 33.08% -28.39%
===========================================
Files 235 219 -16
Lines 30653 30611 -42
===========================================
- Hits 18843 10127 -8716
- Misses 9920 19087 +9167
+ Partials 1890 1397 -493
|
Signed-off-by: husharp <[email protected]>
81c8880
to
d02d9b8
Compare
/run-all-tests |
1 similar comment
/run-all-tests |
/run-pull-e2e-kind-across-kubernetes |
/run-pull-e2e-kind-tikv-scale-simultaneously |
/run-pull-e2e-kind-tngm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csuzhangxc 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 |
[LGTM Timeline notifier]Timeline:
|
/run-pull-e2e-kind-serial |
/run-pull-e2e-kind |
1 similar comment
/run-pull-e2e-kind |
/run-pull-e2e-kind-across-kubernetes |
1 similar comment
/run-pull-e2e-kind-across-kubernetes |
/run-pull-e2e-kind |
/cherry-pick release-1.6 |
@csuzhangxc: new pull request created to branch In 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 ti-community-infra/tichi repository. |
…#5709) Signed-off-by: husharp <[email protected]> Co-authored-by: husharp <[email protected]>
What problem does this PR solve?
Ref #1235, Ref tikv/pd#8157
What is changed and how does it work?
summary
Let's assume there are three tso nodes scheduling-0, scheduling-1, scheduling-2.
tidb-operator will upgrade them in the order 2->0.
If
scheduling-1
is primary, it is possible that when upgradingscheduling-1
, the primary will be transferred toscheduling-0
, and then the primary will be transferred again when upgradingscheduling-0
.scheduling-1
is upgraded, the primary is transferred toscheduling-2
, reducing the number of transfers.Using API
When I created 3 scheduling pods with
8.3.0
PD versioncheck log
Let's upgrade 3 scheduling, and primary is
scheduling-2
now.Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.