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

feat(GraphQL): GraphQL health now reported by /probe/graphql (#5802) #5875

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

abhimanyusinghgaur
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur commented Jul 8, 2020

Fixes #GRAPHQL-507.

This PR adds /probe/graphql HTTP endpoint which returns HTTP status 200 OK, if the /graphql endpoint is up and running otherwise it returns HTTP status 503 Service Unavailable. It also returns a JSON body of the following form:

{"status":"init/up/updating schema"}
Status init is returned for 503, while the rest of the two statuses return 200 code.

(cherry picked from commit 072f6b2)


This change is Reviewable

Docs Preview: Dgraph Preview

Fixes #GRAPHQL-507.

This PR adds /probe/graphql HTTP endpoint which returns HTTP status 200 OK, if the /graphql endpoint is up and running otherwise it returns HTTP status 503 Service Unavailable. It also returns a JSON body of the following form:

{"status":"init/up/updating schema"}
Status init is returned for 503, while the rest of the two statuses return 200 code.

(cherry picked from commit 072f6b2)
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Jul 8, 2020
@abhimanyusinghgaur abhimanyusinghgaur merged commit c5c49a8 into release/v20.07 Jul 9, 2020
@abhimanyusinghgaur abhimanyusinghgaur deleted the abhimanyu/cherry-pick5 branch July 9, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

None yet

1 participant