Skip to content

vlstorage: support automatic snapshot expiration#975

Closed
withlin wants to merge 1 commit intoVictoriaMetrics:masterfrom
withlin:auto-snapshot-expiration
Closed

vlstorage: support automatic snapshot expiration#975
withlin wants to merge 1 commit intoVictoriaMetrics:masterfrom
withlin:auto-snapshot-expiration

Conversation

@withlin
Copy link
Contributor

@withlin withlin commented Dec 29, 2025

Describe Your Changes

Fixes: #829

Relate PR: #952

Checklist

The following checks are mandatory:

valyala added a commit that referenced this pull request Jan 26, 2026
…deletion of snapshots older than the given age

While at it, implement /internal/partition/snapshot/delete_stale?max_age=<d> endpoint for deleting snapshots
older than the given max_age=<d>. For example, max_age=1d removes snapshots older than one day.

Updates #829

Thanks to @withlin for the initial implementation at #975
@valyala
Copy link
Contributor

valyala commented Jan 26, 2026

@withlin , thank you for the pull request! I used it as a basis for creating the commit 992ff2e . Closing the pull request as overridden by that commit.

@valyala valyala closed this Jan 26, 2026
caicancai pushed a commit to caicancai/VictoriaLogs that referenced this pull request Jan 30, 2026
…deletion of snapshots older than the given age

While at it, implement /internal/partition/snapshot/delete_stale?max_age=<d> endpoint for deleting snapshots
older than the given max_age=<d>. For example, max_age=1d removes snapshots older than one day.

Updates VictoriaMetrics#829

Thanks to @withlin for the initial implementation at VictoriaMetrics#975
valyala added a commit that referenced this pull request Feb 5, 2026
…deletion of snapshots older than the given age

While at it, implement /internal/partition/snapshot/delete_stale?max_age=<d> endpoint for deleting snapshots
older than the given max_age=<d>. For example, max_age=1d removes snapshots older than one day.

Updates #829

Thanks to @withlin for the initial implementation at #975
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.

vlstorage: automatic snapshot expiration

2 participants