Overview
The/health endpoint provides a lightweight health check for the LongMem daemon. It returns daemon uptime and operational status without requiring authentication.
Authentication
This endpoint is publicly accessible and does not require an authentication token.Request
Response
Health status of the daemon. Always returns
"ok" if the daemon is running.Daemon uptime in seconds since the process started.
Number of pending compression jobs in the worker queue.
Whether the compression circuit breaker is open (paused).
true means compression is paused due to errors.Time in milliseconds since the last activity was recorded by the idle detector.
Example
Status Codes
- 200 OK: Daemon is healthy and operational
- 500 Internal Server Error: Unexpected server error
Use Cases
- Monitor daemon availability for health checks
- Verify daemon is running before sending requests
- Check compression queue status
- Monitor idle time for auto-shutdown logic