Skip to content

Implement the health check service of the TSP #17

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

Merged
merged 1 commit into from
Feb 11, 2021

Conversation

tahini
Copy link
Contributor

@tahini tahini commented Jan 15, 2021

Add the checkHealth method to request server's health status

Signed-off-by: Geneviève Bastien [email protected]

Add the checkHealth method to request server's health status

Signed-off-by: Geneviève Bastien <[email protected]>
@tahini
Copy link
Contributor Author

tahini commented Jan 15, 2021

/**
* The server status
*/
status: 'UP' | 'DOWN';
Copy link

Choose a reason for hiding this comment

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

Trying to understand. Why not a simple boolean?

Copy link
Member

Choose a reason for hiding this comment

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

Also, is it possible for the server to be down and still answer DOWN ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's from the TSP. We may want to add more status eventually, like OVERLOADED!

And yes, a server that may offer many services could say, "no, I don't answer to trace queries right now". Not the current implementation, but some implementation may.

@MatthewKhouzam
Copy link

Maybe for later, add server metrics, like heap and whatnot. maybe it can be done via prometheus?

Copy link
Contributor

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@tahini tahini merged commit 5f4f154 into eclipse-cdt-cloud:master Feb 11, 2021
@tahini tahini deleted the health branch February 11, 2021 19:26
@marcdumais-work marcdumais-work mentioned this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants