Repository navigation
Default stats.flush_interval to 10m - #10633
Closed
ItamarYuran wants to merge 3 commits into
Closed
ItamarYuran wants to merge 3 commits into
ItamarYuran wants to merge 3 commits into
Conversation
The config default of 30s overrode the collector's own 10-minute fallback, so every lakeFS process sent usage stats every 30 seconds. Totals are unchanged; only the time resolution of usage stats changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pkg/stats already falls back to flushInterval (10m) when no interval is configured. Drop the config default so that fallback is the single source of the value. LAKEFS_STATS_FLUSH_INTERVAL and the config file still override it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every other setting's default lives in pkg/config/defaults.go; keep this one there too. The collector's flushInterval stays as the fallback that keeps time.NewTicker from getting 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ItamarYuran
marked this pull request as ready for review
December 2, 2026 10:28
nopcoder
requested changes
Dec 2, 2026
nopcoder
left a comment
Contributor
There was a problem hiding this comment.
We should give the current flush interval as the current default for now, and handle the load the the backend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
stats.flush_intervaldefaults now to 30s. That value overrides the collector's own fallback (flushInterval = 10 * time.Minute), so almost every lakeFS process sends usage stats every 30 seconds. Each send repeats one entry per distinct metric key, so a busy installation keeps re-sending the same keys. On the receiving side, a 10-minute window cuts the number of stored stats entries by about 79%.