-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Allow extension services to be discovered #12222
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
69a3267
Allow extension services to be discovered
paul-rogers 202229f
Revisions from comments. IT tests
paul-rogers 59e2e80
Revisions from review comments
paul-rogers f050b4e
Revise integation test to get better error messages
paul-rogers 113542a
Fix from review comment
paul-rogers f2cdcc7
Fixed doc issue
paul-rogers 23934e1
Revision from review comments
paul-rogers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would the response format of this API be similar to, or exactly the same as,
/druid/coordinator/v1/cluster? Ideally, if it's exactly the same as, we should say that; if it's merely similar we should outline the differences.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.
As the docs state, the preferred solution is to query the system tables. Yet, as I tinker with clusters, I find it very easy to screw things up so that the the cluster is too broken for SQL. This API is meant to be a light layer on top of ZK to diagnose such issues without having to fire up the ZK client and come up with a way to decode node payloads. Reworded the docs to highlight this idea.
There are slight differences between the formats of the two endpoints. The Coordinator one appears to be tailored to the needs of the Druid Console (maybe?)
The coordinator one is more heavily formatted to put services in some preferred order:
{'coordinator': [{'service': 'druid/coordinator', 'plaintextPort': 8081, 'host': 'coordinator-one'}, {'service': 'druid/coordinator', 'plaintextPort': 8081, 'host': 'coordinator-two'}], ... 'broker': [{'service': 'druid/broker', 'plaintextPort': 8082, 'host': 'broker'}], 'historical': [],This one lists services alphabetically, including only those services actually running:
{'broker': [{'service': 'druid/broker', 'host': 'broker', 'plaintextPort': 8082}], 'coordinator': [{'service': 'druid/coordinator', 'host': 'coordinator-one', 'plaintextPort': 8081}, {'service': 'druid/coordinator', 'host': 'coordinator-two', 'plaintextPort': 8081}], ...