implementing storage cleaningsystem with options#311
implementing storage cleaningsystem with options#311Gregory-Pereira wants to merge 1 commit intoinstructlab:mainfrom
Conversation
Signed-off-by: greg pereira <grpereir@redhat.com>
449407a to
b48d701
Compare
| pressureEvent = mediumDiskPressureEvent | ||
| } else { | ||
| pressureEvent = highDiskPressureEvent | ||
|
|
There was a problem hiding this comment.
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.yamlworkflow file will be dropped once I can verify that theatbinary 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.