hemilabs / heminetwork

The hemi network core daemons.
MIT License
10 stars 6 forks source link

Add health check listeners to each daemon #148

Open joshuasing opened 1 month ago

joshuasing commented 1 month ago

Confirmation

Problem

There is currently no easy way to monitor the health of the daemons when running in a containerised environment where health (readiness and liveness) matters.

Suggested solution

It would be nice to add a health HTTP listener to the daemons that exports a small amount of health information and performs async health checks to check the overall status of the daemon.

If the daemon is unhealthy (i.e. not able to operate correctly), it should report such so that the container can be marked as unhealthy and be restarted.

Additional Information

No response

joshuasing commented 1 month ago

cc @ClaytonNorthey92 @dhidalgX