elct9620 / liveness

The Rack middleware to provide health check endpoints.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split "liveiness" and "readiness" to different route

elct9620 opened this issue · comments

The "health check" have different use cases, we have to split them into different routes.

  • /liveiness means "application is running"
  • /readiness means "application is read and can serve"

The "liveiness" will be used for the container's health check to decide whether "should restart the container".
And the "readiness" will be used for the router/load balancer to decide whether the traffic can be routed to that service or not.