-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Remote Cluster State] Improve stale file deletion logic #12889
Labels
Comments
shiv0408
added
enhancement
Enhancement or improvement to existing feature or request
untriaged
labels
Mar 25, 2024
7 tasks
github-project-automation
bot
moved this from 🆕 New
to ✅ Done
in Cluster Manager Project Board
May 29, 2024
github-project-automation
bot
moved this from ✅ Done
to 🏗 In progress
in Cluster Manager Project Board
Jun 4, 2024
The change was reverted due to flaky tests, reopening the issue |
9 tasks
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in Cluster Manager Project Board
Jun 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe
Currently, we are checking and deleting the stale files on every cluster state update. With this logic, we make a list and get calls to our remote repository in all the cluster state updates. If I have a workload, requiring adding dynamic mappings suppose, it will have lots of cluster state updates in every mapping update. This causes lots of list and get calls to repository, having substantial increase in costs for our usecase.
Describe the solution you'd like
If we move away from cleaning the remote files on every cluster state to a configurable period and number of updates after which this will be triggered, it will provide a better customer experience.
We could configure a default period of x hours and number of updates to y. We will clean up the remote files after y number of cluster state updates or x hours, whatever comes first.
Related component
Cluster Manager
Describe alternatives you've considered
If we go ahead with just a period, then if we have are having large number of cluster state updates, the number of stale files will increase significantly and stay there until the period is over.
Similarly, if we just have clean up after n updates, this also may cause stale files to stay in the repository, if updates are infrequent and state is not updated for a long time.
Additional context
No response
The text was updated successfully, but these errors were encountered: