What endpoints are avaiable to check the health of the nodeß
- User
What endpoints are avaiable to check the health of the nodeß
Assistant
Based on the provided code, there are two health check endpoints available:
/health: This endpoint returns the health status of all registered health checks. It returns a JSON object with the name of each check and a boolean indicating if the check is healthy. The overall HTTP status code will be 200 OK if all checks are healthy, and 503 Service Unavailable otherwise. This endpoint is implemented inprivate/healthcheck/server.goin thehandleAllHTTPfunction./health/{name}: This endpoint returns the health status of a specific check, specified by the{name}path parameter. It returns a JSON object with a boolean indicating if the check is healthy. The HTTP status code will be 200 OK if the check is healthy, 503 Service Unavailable otherwise and 404 Not Found if the check doesn't exist. This endpoint is implemented inprivate/healthcheck/server.goin thehandleSingleHTTPfunction.
Additionally, the storagenode also exposes a
/healthendpoint, implemented in , which returns a JSON object with health information about the node itself, including the online score, disqualification and suspension status of each satellite it is connected to. It also returns a boolean indicating whether all the satellites are healthy. The HTTP status code will be 200 OK if all satellites are healthy, and 503 Service Unavailable otherwise.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.