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

Configurable event retention #131

Merged
merged 5 commits into from
Aug 28, 2024
Merged

Conversation

martastain
Copy link
Member

@martastain martastain commented Apr 12, 2024

Story

With the introduction of the activity feed, the event stream has primarily become a technical tool that no longer needs to be retained indefinitely.

Since the activity feed collects data valuable for production, the event stream's value now lies in providing "undo" options and storing short-term technical data.

Proposal

By using the AYON_EVENT_RETENTION_DAYS environment variable, the server can be configured to purge outdated events, thereby reducing database size and improving performance.

By default, this feature will be turned off, but a reasonable default value could be approximately 90 days, which should suffice for most needs. Users can opt-in for automatic cleanup at any time.

@martastain martastain self-assigned this Apr 12, 2024
@martastain martastain added type: enhancement Improvement of existing functionality or minor addition LOW labels Apr 12, 2024
@martastain martastain removed the LOW label Apr 25, 2024
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

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

this looks good! can this be merged?

@mkolar
Copy link
Member

mkolar commented Aug 15, 2024

@martastain same question as Jakub.

@martastain martastain marked this pull request as ready for review August 28, 2024 09:31
@martastain martastain merged commit 09b9ca9 into develop Aug 28, 2024
@martastain martastain deleted the feature/event_stream_retention branch October 21, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants