Skip to content
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

Modified indices shard count as global count And add Test in indicesS… #37644

Closed
wants to merge 2 commits into from

Conversation

yunchenglu
Copy link

As we see this PR: #35931
#35931
When i use elasticsearch we met the same questions about shard path selection.
Originally, ES chose the multi path only consider about local index shard into {dataPathToShardCount}, but when multi shard created it is prefer to consider about global shard count in data Paths, as we wanna make good use of IO performance
I checked the PR #35931 mentioned above, it is too complicated.
As the code has considered about shard count, so this commit just reuse "dataPathToShardCount", it take all indices shard into consideration and this can modified less code,get more efficient.
At the same time, I added a new test case, which is IndicesShardPathSingleNodeTests , in indices tests to verify it: When we use 2 paths, and create 2 indices with 1 shard, 0 replications. In original method, it may let 2 shards assign into 1 path. In this commits, it may let 2 shards assign into 2 paths.

Thanks
yunchenglu

…ervices when create multi indices to multi path
Update IndicesShardPathSingleNodeTests.java For Gradle check
Remove unsed import
Add License Header
@colings86 colings86 added the :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) label Jan 21, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@keenbo
Copy link

keenbo commented Jan 22, 2019

A good feature for multi disk machine without raid support.

@ywelsch ywelsch added the :Core/Infra/Core Core issues without another label label Feb 26, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst rjernst requested a review from jaymode February 26, 2020 16:32
@rjernst rjernst added Team:Core/Infra Meta label for core/infra team Team:Distributed Meta label for distributed team labels May 4, 2020
@jaymode jaymode removed their request for review November 25, 2020 17:00
@rjernst
Copy link
Member

rjernst commented Apr 26, 2021

Multiple data paths will be deprecated in 7.13 and removed in 8.0 (see #71205). Given that, I believe this PR is no longer relevant, so I will close it.

@rjernst rjernst closed this Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) Team:Core/Infra Meta label for core/infra team Team:Distributed Meta label for distributed team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants