-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Speedup snapshot stale indices delete #613
Speedup snapshot stale indices delete #613
Conversation
❌ DCO Check Failed c3de5944883f79cd98fca7358bb43e7b30f7c083 |
✅ Gradle Wrapper Validation success c3de5944883f79cd98fca7358bb43e7b30f7c083 |
✅ Gradle Precommit success c3de5944883f79cd98fca7358bb43e7b30f7c083 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you amend the commit message to add sign-off for DCO? git commit --amend -s
Fix for issue: elastic/elasticsearch#61513 Signed-off-by: Piyush Daftary <[email protected]>
✅ DCO Check Passed edc4db1 |
✅ Gradle Wrapper Validation success edc4db1 |
✅ Gradle Precommit success edc4db1 |
start gradle check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Merged.. Thank you @piyushdaftary /cc @AmiStrn |
Instead of snapshot delete of stale indices being a single threaded operation this commit makes it a multithreaded operation and delete multiple stale indices in parallel using SNAPSHOT threadpool's workers. Signed-off-by: Piyush Daftary <[email protected]>
Instead of snapshot delete of stale indices being a single threaded operation this commit makes it a multithreaded operation and delete multiple stale indices in parallel using SNAPSHOT threadpool's workers. Signed-off-by: Piyush Daftary <[email protected]>
Fix for issue: elastic/elasticsearch#61513
Description
Current implementation cleanupStaleIndices() of snapshot deletion is very slow . Snapshot deletion code deletes each stale indices from repository one after another sequentially .
With this code changes instead of making snapshot delete of stale indices a single threaded operation we make it multithreaded operation and delete multiple stale indices in parallel using SNAPSHOT thread pool's workers.
I have added more tests to make sure outage scenario and failover scenario is handled.
Issues Resolved
elastic/elasticsearch#64513
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.