kurtosis-tech / kurtosis

A platform for packaging and launching ephemeral backend stacks with a focus on approachability for the average developer.
https://docs.kurtosistech.com/
Apache License 2.0
382 stars 55 forks source link

feat: [log retention improvements pt. 1] introduce file layout interface #2534

Closed tedim52 closed 3 months ago

tedim52 commented 3 months ago

Description

Log Retention Improvements:

Users have had issues with logs from long running enclaves taking up tons of storage. We have a retention mechanism that automatically rotates logs after some time but currently it a) is only able to rotate logs weekly b) can not be configured.

These improvements will allow retention to be as granular as hourly and will allow users to configure the retention period (eg. 1hr, 2hr, 1day, 1week). To do this, a few changes need to happen. Most notably the way logs are stored and retrieved needs to change to support rotating log files hourly. Implementing this requires changes across a few components(LogsAggregator, LogsDatabaseClient, LogFileManager, cli, so I'll be making them incrementally.

Is this change user facing?

NO

References

https://github.com/kurtosis-tech/kurtosis/issues/2443 https://github.com/kurtosis-tech/kurtosis/issues/2190