Skip to content

Supervisor list api with states and health#7839

Merged
dclim merged 7 commits intoapache:masterfrom
clintropolis:supervisor-list-with-states
Jun 7, 2019
Merged

Supervisor list api with states and health#7839
dclim merged 7 commits intoapache:masterfrom
clintropolis:supervisor-list-with-states

Conversation

@clintropolis
Copy link
Copy Markdown
Member

@clintropolis clintropolis commented Jun 6, 2019

Fixes #5538

This PR adds a query parameter to the supervisor list API:

/druid/indexer/v1/supervisor?state=true

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

/druid/indexer/v1/supervisor?full

so they are available in addition to the spec.

@vogievetsky
Copy link
Copy Markdown
Contributor

This fixes #5538

|`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|
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo: 'overal' -> 'overall'

|`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|
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo: 'overal' -> 'overall'

@dclim
Copy link
Copy Markdown
Contributor

dclim commented Jun 7, 2019

👍

@dclim dclim merged commit 3fbb0a5 into apache:master Jun 7, 2019
@clintropolis clintropolis deleted the supervisor-list-with-states branch June 7, 2019 23:56
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
@clintropolis clintropolis added this to the 0.16.0 milestone Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Druid Supervisors: What Do They Know? Do They Know Things?? Let's Find Out!

3 participants