Add Loki size-based purge mechanism #2685
Labels
kind:enhancement
New feature or request
state:blocked
Something prevents this from being worked on
state:question
Further information is requested
topic:log
Anything related to log centralization system
Component: salt, loki
Why this is needed:
Even with a max retention period, the logs could grow faster than what was expected and fill up the volume.
To ensure that Loki service will stay available, even in such cases, we need to implement a mechanism to purge old log chunks when the volume filling ratio is above a certain threshold.
What should be done:
Add a side-car container to Loki pod that will take care of purging the oldest log chunks when volume is almost full.
Implementation proposal (strongly recommended):
Test plan:
The text was updated successfully, but these errors were encountered: