Skip to content
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

feat: [log retention improvements pt. 2] add flag for configuring log retention period #2536

Merged
merged 57 commits into from
Aug 29, 2024

Conversation

tedim52
Copy link
Contributor

@tedim52 tedim52 commented Aug 19, 2024

Description

Log Retention Improvements:

This PR allows users to configure log retention period with --log-retention-period flag on engine starts/restarts. Default is set to 1 week.

  • PR 1: Introduce LogFileLayout and PerWeekLogFileLayout and adjust LogFileManager and LogsDatabaseClient to use this for retrieving log file paths
  • PR 2: Make retention configurable via a CLI flag
  • PR 3: Implement PerHourFileLayout and swap storage format from PerWeekFileLayout to PerHourFileLayout
  • PR 4: Make LogsAggregator use LogFileLayout for determining storage format and set it to use PerHourFileLayout

Is this change user facing?

NO

References

#2443
#2190
#2534

@tedim52 tedim52 requested a review from h4ck3rk3y August 19, 2024 21:17
Copy link
Contributor

@h4ck3rk3y h4ck3rk3y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, random ux comments

Copy link

cloudflare-workers-and-pages bot commented Aug 28, 2024

Deploying kurtosis with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0d901f
Status: ✅  Deploy successful!
Preview URL: https://1b3d2486.kurtosis-docs.pages.dev
Branch Preview URL: https://tedi-granularetention.kurtosis-docs.pages.dev

View logs

@tedim52 tedim52 enabled auto-merge August 29, 2024 21:09
@tedim52 tedim52 added this pull request to the merge queue Aug 29, 2024
Merged via the queue into main with commit 185dc6f Aug 29, 2024
52 checks passed
@tedim52 tedim52 deleted the tedi/granularetention branch August 29, 2024 21:59
github-merge-queue bot pushed a commit that referenced this pull request Aug 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.2.0](1.1.0...1.2.0)
(2024-08-29)


### Features

* [log retention improvements pt. 2] add flag for configuring log
retention period
([#2536](#2536))
([185dc6f](185dc6f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants