etcdserver: optimize range request with KEY ASCEND sorting#21326
etcdserver: optimize range request with KEY ASCEND sorting#21326kairosci wants to merge 3 commits intoetcd-io:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kairosci The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @kairosci. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes-sigs/prow repository. |
b24d5be to
781fc18
Compare
ee975e2 to
0e82e30
Compare
|
Addressed the review feedback: Replaced the
The tests no longer depend on the internal |
|
@serathius could you take another look? Thank you! |
|
/ok-to-test Nont can you do a first round of review? |
Codecov Report✅ All modified and coverable lines are covered by tests. Please upload reports for the commit 871d697 to get more accurate results. Additional details and impacted files
... and 75 files with indirect coverage changes @@ Coverage Diff @@
## main #21326 +/- ##
==========================================
+ Coverage 65.55% 68.27% +2.72%
==========================================
Files 428 429 +1
Lines 35262 35390 +128
==========================================
+ Hits 23115 24164 +1049
+ Misses 10737 9811 -926
- Partials 1410 1415 +5 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Please fix |
2ad5361 to
7eee58c
Compare
|
Please squash commits |
1aa2192 to
a06b3f4
Compare
4257430 to
1b02505
Compare
050154e to
bf50b8b
Compare
|
/test pull-etcd-robustness-amd64 |
|
@serathius So I've rebased and removed the tests, leaving only |
|
Please utilize the added range benchmark to show improvement that this PR brings. See https://www.youtube.com/watch?v=jiXnzkAzy30 for how to benchmark code. |
738c473 to
5ba140f
Compare
727a2bb to
dae1c74
Compare
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
Can you just paste the results like in #21486 |
…Shows 4.5x-17x speedup on real workloads. Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
|
@kairosci: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>
This PR optimizes range request handling by passing the limit to the backend when sorting by key in ascending order, as the backend already returns keys in this order. This avoids fetching all keys and then truncating in memory.
Closes #20745