Supervisor list api with states and health#7839
Merged
dclim merged 7 commits intoapache:masterfrom Jun 7, 2019
Merged
Conversation
Contributor
|
This fixes #5538 |
dclim
reviewed
Jun 7, 2019
| |`id`|String|supervisor unique identifier| | ||
| |`state`|String|basic state of the supervisor. Available states:`UNHEALTHY_SUPERVISOR`, `UNHEALTHY_TASKS`, `PENDING`, `RUNNING`, `SUSPENDED`, `STOPPING`| | ||
| |`detailedState`|String|supervisor specific state. (See documentation of specific supervisor for details)| | ||
| |`healthy`|Boolean|true or false indicator of overal supervisor health| |
dclim
reviewed
Jun 7, 2019
| |`id`|String|supervisor unique identifier| | ||
| |`state`|String|basic state of the supervisor. Available states:`UNHEALTHY_SUPERVISOR`, `UNHEALTHY_TASKS`, `PENDING`, `RUNNING`, `SUSPENDED`, `STOPPING`| | ||
| |`detailedState`|String|supervisor specific state. (See documentation of specific supervisor for details)| | ||
| |`healthy`|Boolean|true or false indicator of overal supervisor health| |
Contributor
|
👍 |
jihoonson
pushed a commit
to implydata/druid-public
that referenced
this pull request
Jun 26, 2019
* allow optionally listing all supervisors with their state and health * docs * add state to full * clean * casing * format * spelling
jihoonson
pushed a commit
to implydata/druid-public
that referenced
this pull request
Jul 8, 2019
* allow optionally listing all supervisors with their state and health * docs * add state to full * clean * casing * format * spelling
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #5538
This PR adds a query parameter to the supervisor list API:
to enable 'at a glance' status to be cheaply included with a list of supervisors through the state and health provided by #7428. Response is a list of the form:
[{"id":"somesupervisor","state":"RUNNING","detailedState":"RUNNING","healthy":true}...]Additionally, these fields are also added to
so they are available in addition to the spec.