[Remote Store] Parallel segment downloads in IndexShard #8236
Labels
enhancement
Enhancement or improvement to existing feature or request
Storage:Durability
Issues and PRs related to the durability framework
Storage
Issues and PRs relating to data and metadata storage
Is your feature request related to a problem? Please describe.
As of today, we are using the
Directory#copyFrom
method synchronously. The invocation is done on a simple for loop which might end up slowing down the shard recovery process.OpenSearch/server/src/main/java/org/opensearch/index/shard/IndexShard.java
Lines 4567 to 4577 in 84dffac
We should look into making this
copyFrom
invocation in parallel to speed up segment downloads during shard recoveryDescribe the solution you'd like
Use a new threadpool called
remote_download
to download these segment files in parallelThe text was updated successfully, but these errors were encountered: