You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behaviour of one or more Modules [provide name(s), e.g. ObjectDetectionYolo]
Installer
Runtime [e.g. Python3.7, .NET]
Module packages [e.g. PyTorch)
[ ? ] Something else
Describe the bug
I would like to know if there's a web path (or something similar) that I can have a liveness probe check to make sure the AI server is healthy so that if it is unhealthy, the AI server can be restarted. Right now I have a liveness probe that just checks the main page. Is there a better page I should be using?
Your System (please complete the following information):
CodeProject.AI Server version: cpu-2.6.5
OS: Debian 12
System RAM: 64GB
GPU (if available): Intel UHD Graphics 630
GPU RAM (if available): Unsure
Additional context
I am running AI Server in a kubernetes cluster
The text was updated successfully, but these errors were encountered:
Not sure if the API is "official" or meant to be used outside of the dashboard, but there are some endpoints available that do variations of this, I think. There is a /ping endpoint to check aliveness, a "system-status" endpoint which returns some deeper info, etc. Based on the comments, there are some opportunities to expand on this to make it more "health-y" if you will, but it may do the job for now.
/// <summary>
/// Allows for a client to ping the service to test for aliveness.
/// </summary>
/// <returns>A ResponseBase object.</returns>
[HttpGet("ping"/*, Name = "Ping"*/)]
[Produces("application/json")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
public ServerResponse GetPing()
{
/* This is a simple and sensible response. But let's do better
var response = new ResponseBase
{
success = true,
};
return response;
*/
return GetVersion();
}
Area of Concern
Describe the bug
I would like to know if there's a web path (or something similar) that I can have a liveness probe check to make sure the AI server is healthy so that if it is unhealthy, the AI server can be restarted. Right now I have a liveness probe that just checks the main page. Is there a better page I should be using?
Your System (please complete the following information):
Additional context
I am running AI Server in a kubernetes cluster
The text was updated successfully, but these errors were encountered: