-
Notifications
You must be signed in to change notification settings - Fork 18
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
implementing storage cleaningsystem with options #311
base: main
Are you sure you want to change the base?
implementing storage cleaningsystem with options #311
Conversation
Signed-off-by: greg pereira <[email protected]>
449407a
to
b48d701
Compare
pressureEvent = mediumDiskPressureEvent | ||
} else { | ||
pressureEvent = highDiskPressureEvent | ||
|
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.
Maybe I could set the strategy to immediate
if it hits highDiskPressureEvent
...?
Confirmed |
I think at this point of time, we can just implement a simple Lazy policy and see how well it works. We can implement rest of the policies in the future if needed. |
@vishnoianil I am confused if this cleanup will take place at a static directory? I was under the assumption that both of these cleaning operations would be after pre-check / generate, in which case wouldn't it be a path to the data specific to that call? It seems odd to use a lazy strategy with regard to data for a specific run. Please let me know if I am misunderstanding something (almost certain I am). |
Addresses: #305
/cc @vishnoianil @nerdalert Please take a look.
I am struggling still with the event based strategy. I built a channel that will watch for disk-pressure, but I didn't know how to pass the working directory of the job that pushed the usage past the limit and triggered the channel event.
The
.github/workflows/test-at.yaml
workflow file will be dropped once I can verify that theat
binary ships withUbuntu 22.04
.Also looking for thoughts on the enum I tried to setup with the
CleanupStrategyType
, didn't see / know of any comparable Enum examples in our codebase.