Skip to content

Conversation

@SungJin1212
Copy link
Member

This PR adds a TTL to parquet shard cache. A TTL can be configured by -querier.parquet-queryable-shard-cache-ttl flag.

To reviewers: Which default TTL value would be appropriate?

Which issue(s) this PR fixes:
Fixes #6991

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@SungJin1212 SungJin1212 force-pushed the Add-paruqet-shard-cache-ttl branch 2 times, most recently from 9c55941 to 43d0546 Compare November 11, 2025 02:21
Signed-off-by: SungJin1212 <[email protected]>
Signed-off-by: SungJin1212 <[email protected]>
@SungJin1212 SungJin1212 force-pushed the Add-paruqet-shard-cache-ttl branch from 43d0546 to 0ce1c39 Compare November 14, 2025 01:51
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks!

return c, nil
}

func (c *Cache[T]) maintenanceLoop(interval time.Duration) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note, I think we need to move this cache implementation or some reusable parquet code into a separate package so that store gateway parquet mode can reuse the same thing

@yeya24 yeya24 merged commit d56bbea into cortexproject:master Nov 22, 2025
49 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parquet Querier: Add TTL to Parquet Queryable Shard Cache

2 participants