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

Allow to customize BucketStore query gate #2798

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

pracucci
Copy link
Contributor

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

In Cortex we do instantiate a BucketStore for each tenant. This means that the query gate is per tenant and, in our context, doesn't make much sense.

I would like to propose to pick the gate in input to NewBucketStore() so that embedders (like Cortex) have full control over it. This PR should be a non-functional change for Thanos.

Verification

Existing tests.

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bwplotka bwplotka merged commit 686c49b into thanos-io:master Jun 23, 2020
@pracucci pracucci deleted the pass-query-gate-to-bucket-store branch June 24, 2020 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants