Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable thanos series limiter in store-gateway #4702

Merged

Conversation

harry671003
Copy link
Contributor

@harry671003 harry671003 commented Apr 4, 2022

Signed-off-by: 🌲 Harry 🌊 John 🏔 [email protected]

What this PR does:
Currently we're only enforcing the max_fetched_series_per_query limit on querier. Not enforcing the series limit on store-gateways could potentially OOM kill them when a large query is executed. This PR enables the Thanos series limiter in store-gateway.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

@harry671003 harry671003 force-pushed the enable-limits-storegateway branch from 211fde4 to 099ce3b Compare April 4, 2022 17:50
@@ -492,7 +492,7 @@ func (u *BucketStores) getOrCreateStore(userID string) (*store.BucketStore, erro
fetcher,
u.syncDirForUser(userID),
newChunksLimiterFactory(u.limits, userID),
store.NewSeriesLimiterFactory(0), // No series limiter.
newSeriesLimiterFactory(u.limits, userID),
Copy link
Member

Choose a reason for hiding this comment

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

Can we make sure that querier will not retry when this limit is enforced?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: 🌲 Harry 🌊 John 🏔 <[email protected]>
@harry671003 harry671003 force-pushed the enable-limits-storegateway branch from 099ce3b to 17b2b4d Compare April 5, 2022 16:32
@alanprot alanprot merged commit 805dc82 into cortexproject:master Apr 5, 2022
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.

3 participants