Skip to content

feat: make persisted file buffer size configurable - #26528

Merged
waynr merged 1 commit into
mainfrom
feat/make-persisted-file-load-configurable
Jun 18, 2025
Merged

waynr merged 1 commit into
mainfrom
feat/make-persisted-file-load-configurable

Conversation

@waynr

@waynr waynr commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

This PR addresses a shortcoming in PersistedFiles (an index of gen1 files kept in querier/ingester memory) load during startup by:

  • Making the "lookback" duration configurable with the number of persisted files determined by dividing the configured gen1 file duration into this new gen1 lookback duration.
  • Setting the default lookback to 1 month. With the default gen1 file duration of 10m, this would lead to roughly 4320 files loaded by default.

One good bit of feedback reviewers could give here would be whether we should consider looking further back, maybe as far back as 3 or 6 months? This would lead to 12960 or 25920 files loaded on startup by default.

@praveen-influx praveen-influx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like this PR also includes changes in main already, does it require updating first? But the changes itself look fine.

Comment thread influxdb3/src/commands/serve.rs Resolved
Comment thread influxdb3/src/lib.rs Resolved
@waynr
waynr force-pushed the feat/make-persisted-file-load-configurable branch 4 times, most recently from 31d9e66 to 29920ef Compare June 17, 2025 19:02
@waynr
waynr requested a review from praveen-influx June 18, 2025 07:17
@waynr

waynr commented Jun 18, 2025

Copy link
Copy Markdown
Contributor Author

Looks like this PR also includes changes in main already, does it require updating first? But the changes itself look fine.

Yeah I think I had my dev branches mixed up yesterday. It should be good now.

@praveen-influx praveen-influx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚢

@waynr
waynr merged commit 8e06889 into main Jun 18, 2025
@waynr
waynr deleted the feat/make-persisted-file-load-configurable branch June 18, 2025 16:45
mgattozzi pushed a commit that referenced this pull request Sep 8, 2025
* feat: allow users to specify lookback duration for PersistedFiles buffer (#26528)

* feat: support reloading ephemeral AWS credentials via file (#26537)
  * feat: introduce re-authenticating ObjectStore adapter for AWS file credentials
  * test: validate AwsCredentialReloader background update behavior
  * test: add tests and fixtures to validate ReauthingObjectStore behavior
  * docs: add --aws-credentials-file to manually-curated docstrings
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