commands/cluster: use pipeline to execute split commands#2230
Merged
dvora-h merged 1 commit intoJun 27, 2022
Conversation
- allow passing target_nodes to pipeline commands - move READ_COMMANDS to commands/cluster to avoid import cycle - add types to list_or_args
Codecov Report
@@ Coverage Diff @@
## master #2230 +/- ##
==========================================
- Coverage 91.83% 91.82% -0.01%
==========================================
Files 108 108
Lines 27690 27685 -5
==========================================
- Hits 25429 25423 -6
- Misses 2261 2262 +1
Continue to review full report at Codecov.
|
dvora-h
approved these changes
Jun 27, 2022
Collaborator
|
@utkarshgupta137 Thanks! These things really improve the project. |
6 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request check-list
$ toxpass with this change (including linting)?Description of change
Since commands are split by slots, using a pipeline to send keys from the same node together provides a massive speedup, especially for the sync version.
Benchmarks using a batch of MGET 100 keys, MSET 100 keys, DEL 100 keys:
Other changes: