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

fix: replace duplicate log files with symlinks #1472

Merged
merged 12 commits into from
Oct 6, 2023
Merged

fix: replace duplicate log files with symlinks #1472

merged 12 commits into from
Oct 6, 2023

Conversation

tedim52
Copy link
Contributor

@tedim52 tedim52 commented Oct 5, 2023

Description:

Due to this PR, the logs aggregator stores duplicate log files which causes log storage to grow quickly. This change prevents storing duplicate logs by periodically replacing the duplicate log files with symlinks to a single log file. This allows logs to still be retrievable from stopped enclaves using any service identifier without increasing log storage.

Also includes a small refactor to use a better supported pkg (spf13/afero) to mock the filesystem that cleans up logging unit tests quite a bit.

Is this change user facing?

NO

References:

#1213
#1394
#1459

@tedim52 tedim52 requested a review from adschwartz October 5, 2023 06:09
@tedim52 tedim52 enabled auto-merge (squash) October 6, 2023 19:28
@tedim52 tedim52 merged commit 57da901 into main Oct 6, 2023
11 checks passed
@tedim52 tedim52 deleted the tedi/symlink branch October 6, 2023 19:43
h4ck3rk3y added a commit that referenced this pull request Oct 9, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.84.3](0.84.2...0.84.3)
(2023-10-09)


### Features

* regular replace package dependency and replace package with
no-main-branch
([#1481](#1481))
([bec49ac](bec49ac))
* remove logs on enclave rm and clean -a
([#1489](#1489))
([9ea344e](9ea344e))


### Bug Fixes

* Add new line while inspecting file contents
([#1477](#1477))
([545aa53](545aa53))
* improve absolute locator checks
([#1498](#1498))
([cda001d](cda001d))
* kurtosis web cmd work for remote context
([#1486](#1486))
([8d8634c](8d8634c))
* make vector use ISO week time
([#1497](#1497))
([e6d1f5e](e6d1f5e))
* replace duplicate log files with symlinks
([#1472](#1472))
([57da901](57da901))

---
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: h4ck3rk3y <[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.

2 participants