Skip to content

Conversation

pracucci
Copy link
Contributor

What this PR does:
I just realised we issue Attributes() calls on meta.json but we don't cache it. This PR adds support for caching meta.json attributes API call too, other than increasing the default attributes TTL from 1d to 7d.

Which issue(s) this PR fixes:
N/A

Checklist

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

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

LGTM.

We don't need to use this for NoCompactMarkFilename, since that's only used by compactor, which doesn't use metadata cache at all.

@pracucci pracucci merged commit bfb35dc into cortexproject:master Nov 23, 2020
@pracucci pracucci deleted the cache-meta-attributes-call-too branch November 23, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants