tidb-operator
tidb-operator copied to clipboard
[WIP]Support intelligent update policy
What problem does this PR solve?
#4130
What is changed and how does it work?
- Pd statefulset use
ondeleteupdate policy deploy and use intelligent update policy , current support the non-leader pod update first. - TiDB/TiKV support metrics cache and intelligent update policy.
Code changes
- [ ] Has Go code change
- [ ] Has CI related scripts change
Tests
- [ ] Unit test
- [ ] E2E test
- [ ] Manual test
- [ ] No code
Side effects
- [ ] Breaking backward compatibility
- [ ] Other side effects:
Related changes
- [ ] Need to cherry-pick to the release branch
- [ ] Need to update the documentation
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.
[REVIEW NOTIFICATION]
This pull request has not been approved.
To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.
The full list of commands accepted by this bot can be found here.
Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.
For example:
pd member screenshot:
pod update screenshot:( The order is pd-1 pd-0 pd-2)
transfer leader log:

Codecov Report
Merging #4355 (2ab5b54) into master (eecea2b) will decrease coverage by
5.31%. The diff coverage is18.51%.
@@ Coverage Diff @@
## master #4355 +/- ##
==========================================
- Coverage 62.59% 57.27% -5.32%
==========================================
Files 183 163 -20
Lines 19454 20112 +658
==========================================
- Hits 12177 11520 -657
- Misses 6143 7252 +1109
- Partials 1134 1340 +206
| Flag | Coverage Δ | |
|---|---|---|
| e2e | 57.27% <18.51%> (?) |
|
| unittest | ? |
@mikechengwei: PR needs rebase.
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/test-infra repository.