-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tikv: Fix the issue that KV requests might be processed slower because the connections to some KV servers are slow to establish. #12733
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bench |
@@ Benchmark Diff @@
================================================================================
--- tidb: e80bab6d46869a77d56bdaef29d950bcbd4fdc40
+++ tidb: 7927cecc6c25a6843638795699c95d121c839165
tikv: 6b42cb67548e29d45e6f5e15da7ee9ba7099e993
pd: 381d36ba81d7616d8cd7e05c7672aa80a726f290
================================================================================
test-1: < oltp_point_select >
* QPS : 139370.11 ± 0.7083% (std=626.58) delta: -0.19% (p=0.569)
* AvgMs : 1.83 ± 0.8724% (std=0.01) delta: 0.49%
* PercentileMs99 : 6.21 ± 0.0000% (std=0.00) delta: 0.00%
test-2: < oltp_read_write >
* QPS : 41350.50 ± 1.7176% (std=415.34) delta: -0.58% (p=0.649)
* AvgMs : 123.37 ± 0.1783% (std=0.14) delta: -0.16%
* PercentileMs99 : 248.83 ± 0.0000% (std=0.00) delta: 0.00%
test-3: < oltp_insert >
* QPS : 23847.62 ± 0.1959% (std=27.98) delta: -0.08% (p=0.782)
* AvgMs : 10.73 ± 0.1864% (std=0.01) delta: 0.11%
* PercentileMs99 : 22.05 ± 1.0614% (std=0.19) delta: 0.71%
test-4: < oltp_update_index >
* QPS : 19240.50 ± 0.0552% (std=8.21) delta: 0.03% (p=0.551)
* AvgMs : 13.26 ± 0.3771% (std=0.03) delta: -0.35%
* PercentileMs99 : 30.81 ± 0.0000% (std=0.00) delta: 0.00%
test-5: < oltp_update_non_index >
* QPS : 32242.45 ± 0.0556% (std=13.39) delta: -0.38% (p=0.091)
* AvgMs : 7.94 ± 0.0840% (std=0.00) delta: 0.42%
* PercentileMs99 : 20.74 ± 0.0000% (std=0.00) delta: 1.08%
|
Codecov Report
@@ Coverage Diff @@
## master #12733 +/- ##
===========================================
Coverage 80.0582% 80.0582%
===========================================
Files 465 465
Lines 106535 106535
===========================================
Hits 85290 85290
Misses 14897 14897
Partials 6348 6348 |
/run-all-tests |
/bench |
@@ Benchmark Diff @@
================================================================================
--- tidb: 6b403e5767e117e599489070a495f7c3a7da787c
+++ tidb: b275614654d1a23e54ea9670f00957c5e9beede2
tikv: f7f9a5944feea92df87368874ca0575fb87cf9b1
pd: 543309d2613cbe3bc6592fa77e0c7e87692750c0
================================================================================
test-1: < oltp_point_select >
* QPS : 138924.20 ± 0.1087% (std=96.15) delta: -1.06% (p=0.006)
* AvgMs : 1.84 ± 0.0000% (std=0.00) delta: 0.99%
* PercentileMs99 : 6.21 ± 0.0000% (std=0.00) delta: 1.97%
test-2: < oltp_read_write >
* QPS : 41579.01 ± 0.2375% (std=61.29) delta: 0.18% (p=0.926)
* AvgMs : 123.67 ± 0.2070% (std=0.18) delta: -0.01%
* PercentileMs99 : 248.83 ± 0.0000% (std=0.00) delta: 1.08%
test-3: < oltp_insert >
* QPS : 23718.83 ± 0.0252% (std=4.51) delta: -0.23% (p=0.377)
* AvgMs : 10.79 ± 0.0618% (std=0.00) delta: 0.23%
* PercentileMs99 : 22.28 ± 0.0000% (std=0.00) delta: 1.06%
test-4: < oltp_update_index >
* QPS : 19155.67 ± 1.5763% (std=208.50) delta: -0.81% (p=0.482)
* AvgMs : 13.24 ± 0.0755% (std=0.01) delta: -0.06%
* PercentileMs99 : 30.81 ± 0.0000% (std=0.00) delta: 0.00%
test-5: < oltp_update_non_index >
* QPS : 32284.11 ± 0.3777% (std=103.40) delta: 0.03% (p=0.865)
* AvgMs : 7.92 ± 0.3281% (std=0.02) delta: -0.08%
* PercentileMs99 : 20.52 ± 1.0820% (std=0.18) delta: 0.00%
|
PTAL @coocood @hicqu @tiancaiamao we need this in next release |
hicqu
reviewed
Oct 17, 2019
/run-all-tests |
1 similar comment
/run-all-tests |
/run-unit-tests |
LGTM |
/run-all-tests |
/rebuild |
LGTM |
tiancaiamao
approved these changes
Oct 18, 2019
/run-all-tests |
/rebuild |
/run-all-tests |
/bench |
/run-all-tests |
cherry pick to release-3.1 failed |
cherry pick to release-3.0 failed |
coocood
pushed a commit
that referenced
this pull request
Oct 18, 2019
sre-bot
pushed a commit
to sre-bot/tidb
that referenced
this pull request
Nov 8, 2019
jackysp
pushed a commit
that referenced
this pull request
Nov 8, 2019
XiaTianliang
pushed a commit
to XiaTianliang/tidb
that referenced
this pull request
Dec 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/tikv
priority/release-blocker
This issue blocks a release. Please solve it ASAP.
status/can-merge
Indicates a PR has been approved by a committer.
status/LGT2
Indicates that a PR has LGTM 2.
type/bugfix
This PR fixes a bug.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
fix the potential problem that slow establishes the connection make other kv requests be slow
createConnArray
will block wait conn establish on createtikvClient.BatchCommands
createConnArray
will blockgetConnArray
What is changed and how it works?
estDone
before send request, send directly if doneestReady
channel if it's not done(only need select channel for first time)dialTimeout
for batch client creationmore words:
Check List
Tests
Code changes
Side effects
Related changes
Release note
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)