br: optimize communication with tikv stores. #31722#35147
br: optimize communication with tikv stores. #31722#35147ti-chi-bot merged 8 commits intopingcap:masterfrom
Conversation
Signed-off-by: Gaoming Zhang <zhanggaoming028@gmail.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/eae890ba377072fe06e40988bed2d23df4e9243f |
|
Question:
|
|
/run-all-tests |
|
/run-integration-br-test |
I think we should handle reset speed-limit since we may have multiple restorations. and we can ignore the error after some times retry for now. in future we may need a mechanism to set speed limit in ttl. like what we do in |
Signed-off-by: Gaoming Zhang <zhanggaoming028@gmail.com>
|
/run-integration-br-test |
|
/run-integration-br-test |
Signed-off-by: Gaoming Zhang <zhanggaoming028@gmail.com>
|
/run-integration-br-test |
|
@MoCuishle28: GitHub didn't allow me to request PR reviews from the following users: PTAL. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. 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/test-infra repository. |
Signed-off-by: Gaoming Zhang <zhanggaoming028@gmail.com>
|
/run-integration-br-test |
br/pkg/restore/client.go
Outdated
| } | ||
|
|
||
| opt := grpc.WithInsecure() | ||
| if rc.tlsConf != nil { |
There was a problem hiding this comment.
shall we move opt into workerPool?
There was a problem hiding this comment.
Yes, we can move opt into workerPool. I have modified it. PTAL
Signed-off-by: Gaoming Zhang <zhanggaoming028@gmail.com>
|
/run-integration-br-test |
1 similar comment
|
/run-integration-br-test |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 36b55d6 |
|
@MoCuishle28: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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 ti-community-infra/tichi repository. |
* upstream/master: (77 commits) infoschema: add a simply store for DM's SchemaTracker (pingcap#35954) planner: refactor "access object" related logic and prepare for binary plan (pingcap#35890) telemetry: Initialize telemetry asynchronously (pingcap#35898) sessionctx/variable: convert TiDBLogFileMaxDays and TiDBConfig to ScopeInstance (pingcap#35733) session, sessionctx/variable: ensure sysvars are always in lower case (pingcap#35659) *: add telemetry support for multi-schema change (pingcap#35977) topsql: compress plan instead of dropping it (pingcap#35973) *: use pdqsort to improve sort performance (pingcap#34404) ddl: refine GetDDLInfo function (pingcap#35969) *: Make the code cleaner in session.ExecutePreparedStmt (pingcap#35943) ddl: remove `onDropIndexes` (pingcap#35960) ddl: refine history job code (pingcap#35967) sessionctx,kv,planner: add system variable for fine_grained_shuffle (pingcap#35256) *: change remote cache (pingcap#35968) *: enable gosec (pingcap#35873) plancodec: fix a miss case in conversion (pingcap#35957) ddl: support drop indexes for multi-schema change (pingcap#35883) pdutil: fix unstable test TestPauseSchedulersByKeyRange (pingcap#35949) br: optimize communication with tikv stores. pingcap#31722 (pingcap#35147) txn: rename snapshot related methods in txnManager. (pingcap#35912) ...
Signed-off-by: Gaoming Zhang zhanggaoming028@gmail.com
What problem does this PR solve?
ResetSpeedLimitfunction to reset the speed-limit of TiKV after the restore phase is done.Issue Number: close #31722
Problem Summary:
Need to optimize communication with tikv stores.
What is changed and how it works?
workPoolfield in therestore.Clientto implement concurrent communication with TiKV stores.rateLimitfield ofFileImporter.ResetSpeedLimitfunction to reset the speed-limit of TiKV after the restore phase is done.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.