Skip to content

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 gbastien@versatic.net

Add the checkHealth method to request server's health status

Signed-off-by: Geneviève Bastien <gbastien@versatic.net>
@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