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

store-gateway: Add timeout for index-header loading gate #8138

Merged
merged 2 commits into from
May 16, 2024

Conversation

56quarters
Copy link
Contributor

@56quarters 56quarters commented May 14, 2024

What this PR does

This change introduces an optional timeout on the gate used to limit the concurrency of index-header loads. This helps in cases where a store-gateway may have to load a large index-header before it can serve a query. This prevents and unbounded number of requests from blocking while index-headers are loaded.

Which issue(s) this PR fixes or relates to

Fixes #8137

Related #7777

Checklist

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

@56quarters 56quarters force-pushed the 56quarters/index-header-timeout branch 2 times, most recently from 181e8d1 to bd0c495 Compare May 14, 2024 19:22
@56quarters 56quarters force-pushed the 56quarters/index-header-timeout branch from bd0c495 to 6f304ef Compare May 15, 2024 19:48
@56quarters 56quarters marked this pull request as ready for review May 15, 2024 20:41
@56quarters 56quarters requested review from jdbaldry and a team as code owners May 15, 2024 20:41
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM

This change introduces an optional timeout on the gate used to limit the
concurrency of index-header loads. This helps in cases where a store-gateway
may have to load a large index-header before it can serve a query. This
prevents and unbounded number of requests from blocking while index-headers
are loaded.

Fixes #8137

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
@56quarters 56quarters force-pushed the 56quarters/index-header-timeout branch from 6f304ef to 6f76a52 Compare May 16, 2024 13:55
@56quarters 56quarters merged commit a6fa9b0 into main May 16, 2024
29 checks passed
@56quarters 56quarters deleted the 56quarters/index-header-timeout branch May 16, 2024 14:28
francoposa pushed a commit that referenced this pull request May 27, 2024
* store-gateway: Add timeout for index-header loading gate

This change introduces an optional timeout on the gate used to limit the
concurrency of index-header loads. This helps in cases where a store-gateway
may have to load a large index-header before it can serve a query. This
prevents and unbounded number of requests from blocking while index-headers
are loaded.

Fixes #8137

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>

* Note experimental flag and add comment

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>

---------

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
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.

store-gateway: add timeout to index-header loading
2 participants