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

Separate query limits for store gateway #5579

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Sep 26, 2023

What this PR does:

This pr separates the query limits for SG, mainly series and chunks limit. Previously we use the same limits from querier for store gateways.

That works but the issue is that querier usually aggregates data from multiple store gateways so the limit is usually high. Having such a high limit on a single request to store gateway might not protect anything.

As first step, I think we can start exposing limits specifc for SGs. LF some feedbacks as this is a breaking change.

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]

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 26, 2023
# The maximum number of series to fetch per gRPC request in Store Gateway,
# including Series/LabelNames/LabelValues requests. 0 to disable.
# CLI flag: -store-gateway.max-series-per-request
[max_series_per_request: <int> | default = 0]
Copy link
Contributor

Choose a reason for hiding this comment

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

These limits are not deterministic? Doesn't it depend on how the blocks where sharded on store-gateways? Could we implement this per block?

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.

None yet

2 participants