This basically just copy/pastes our internal health checks and converts the HealthCheck trait itself into an #[async_trait].
In our previous version we expose both /health/live and /health/ready which corresponds to livenessProbe and readinessProbe in Kubernetes. I guess that makes sense to keep but would like to hear what people think.
This basically just copy/pastes our internal health checks and converts the
HealthCheck
trait itself into an#[async_trait]
.In our previous version we expose both
/health/live
and/health/ready
which corresponds tolivenessProbe
andreadinessProbe
in Kubernetes. I guess that makes sense to keep but would like to hear what people think.Example usage:
Health checks can also be combined using
HealthCheck::and
:Related Issues
Fixes https://github.com/EmbarkStudios/server-framework/issues/3