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

Converted frontend worker to a service. #2246

Merged
merged 3 commits into from
Mar 11, 2020
Merged

Converted frontend worker to a service. #2246

merged 3 commits into from
Mar 11, 2020

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Mar 11, 2020

Issue: The query frontend worker in the querier was previously (before this PR) started in the init function. The side effect was that it started pulling jobs from the queue before the queryable is ready. This means queries fail during the rollout, until the queryable is ready.

This PR changes that. Frontend worker is now a service, and it is only started after all Querier module dependencies are started. This includes queryable.

Checklist

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

Copy link
Contributor

@pracucci pracucci 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! I just think this fix is worth a CHANGELOG entry.

Frontend worker is now started only after all Querier module
dependencies are started. Previously, worker was started much earlier,
long before Querier was ready to accept queries.

Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany
Copy link
Contributor Author

LGTM, thanks! I just think this fix is worth a CHANGELOG entry.

Thanks for review! Added changelog entry now.

@pstibrany pstibrany merged commit 5fc2fc6 into cortexproject:master Mar 11, 2020
@pstibrany pstibrany deleted the frontend-worker-service branch March 11, 2020 12:34
@pstibrany
Copy link
Contributor Author

cc @cyriltovena this also affects Loki, which uses frontend worker directly. Post 0.7 as well.

(I'll start working on Loki integration soon, but just so you know about it)

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