-
Notifications
You must be signed in to change notification settings - Fork 832
Query frontend single binary #2437
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
Query frontend single binary #2437
Conversation
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
cc @jtlisi Ready for review! |
Signed-off-by: Marco Pracucci <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 I've pushed a fix for the label names/values querying in the blocks storage (the edge case triggered in integration tests was when the written series timestamp >= now). The api.go
refactoring LGTM. I just have a concern about the "single binary will be mysteriously unresponsive unless worker is working".
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @joe-elliott for addressing my feedback! LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a query. I wonder if we can expose the querier endpoints on a different path (with a prefix of /querier/
or something similar).
a.RegisterRoute(a.cfg.LegacyHTTPPrefix+"/user_stats", http.HandlerFunc(distributor.UserStatsHandler), true) | ||
a.RegisterRoute(a.cfg.LegacyHTTPPrefix+"/chunks", querier.ChunksHandler(queryable), true) | ||
|
||
// these routes are either registered the default server OR to an internal mux. The internal mux is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, does this mean that when using the single binary mode, do we not expose the querier endpoints at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct. I purposefully chose this route over path prefixing because I found it cleaner.
Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
I don't have a strong opinion here, but we should add a TODO in the comments before merging this :) |
Other than that LGTM! |
Signed-off-by: Joe Elliott <[email protected]>
* Added query frontend to the single binary Signed-off-by: Joe Elliott <[email protected]> * First pass single binary Signed-off-by: Joe Elliott <[email protected]> * Pass parameter correctly Signed-off-by: Joe Elliott <[email protected]> * lint Signed-off-by: Joe Elliott <[email protected]> * Added label tests to single binary Signed-off-by: Joe Elliott <[email protected]> * Added a warning for bad single process config Signed-off-by: Joe Elliott <[email protected]> * Added auto config of worker Signed-off-by: Joe Elliott <[email protected]> * Always add auth middleware. Signed-off-by: Joe Elliott <[email protected]> * Fixed label tests and used address that worked in e2e tests Signed-off-by: Joe Elliott <[email protected]> * updated changelog Signed-off-by: Joe Elliott <[email protected]> * Run unbounded queries to fetch label names/values in the blocks storage Signed-off-by: Marco Pracucci <[email protected]> * Moved automatic worker config attempt above worker Signed-off-by: Joe Elliott <[email protected]> * Moved changelog entry and expanded Signed-off-by: Joe Elliott <[email protected]> * Change => Enhancement Signed-off-by: Joe Elliott <[email protected]> * Added todo Signed-off-by: Joe Elliott <[email protected]> Co-authored-by: Marco Pracucci <[email protected]>
What this PR does:
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]