-
Notifications
You must be signed in to change notification settings - Fork 316
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
cluster: copy session certs when scale-out TiDB #2432
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2432 +/- ##
==========================================
- Coverage 55.03% 50.20% -4.84%
==========================================
Files 334 333 -1
Lines 35925 35952 +27
==========================================
- Hits 19771 18047 -1724
- Misses 13773 15538 +1765
+ Partials 2381 2367 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaaaaaaang 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:
|
New changes are detected. LGTM label has been removed. |
What problem does this PR solve?
When TiProxy is deployed and then scale out TiDB, the session certs are not copied to the new TiDB instances. Because when judging whether the cluster has TiProxy, the topology is the scale-out spec, not the merged spec.
What is changed and how it works?
buildSessionCertTasks
frombuildCertificateTasks
.buildCertificateTasks
is reverted to that before cluster: auto session certs #2374mergedTopo
andnewPart
tobuildSessionCertTasks
. Generate session certs when TiProxy is newly enabled. Copy session certs to both original and new TiDB instances when scale-out TiDB if TiProxy is deployed.Check List
Tests
Case 1:
Case 2:
Code changes
Side effects
Related changes
Release notes: