Repository navigation
Set replica number to its position in cluster definition - #57800
Merged
nickitat merged 2 commits intoDec 20, 2023
Merged
Conversation
Contributor
|
This is an automated comment for commit 5cba8a8 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
nickitat
force-pushed
the
parallel_replicas_replica_number
branch
from
December 13, 2023 18:01
cba8767 to
5cba8a8
Compare
nickitat
marked this pull request as ready for review
December 14, 2023 11:44
devcrafter
reviewed
Dec 17, 2023
| else | ||
| { | ||
| new_cluster = not_optimized_cluster->getClusterWithReplicasAsShards(settings); | ||
| new_cluster = not_optimized_cluster->getClusterWithReplicasAsShards(settings, settings.max_parallel_replicas); |
Member
There was a problem hiding this comment.
If max_parallel_replicas less than the number of replicas in cluster, then replicas will be shuffled before converting to shards, here. So, every query execution will assign different nodes. In context, of cache locality, it's not what we want
Member
Author
There was a problem hiding this comment.
for the history: we agreed to leave it this way until we have a better solution. because the other alternative is to always peek the same prefix of nodes and leave the rest not utilised at all.
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.
Changelog category (leave one):