Liveness and readiness health endpoints #4014
-
Hi, First to summarise the means of these endpoints. Not sure whether this concept was introduced by K8s but my proposal is to be inspired by the probes logic how it defines K8s :
During the implementation I came up for some topics I would like to spun up a discussion about: A) From backward compatibility POV, what indicator the Q: What should the Q: Should one of the liveness or readiness endpoint return also health indicators that are not qualified? B) Adoption of Liveness / Readiness qualifiers in micronaut
Q: Do we want to migrate micronaut health indicators? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I would say
I think current health indicators should all be regarded as A user can optionally define a liveness probe that triggers a restart of the container themselves. In general most health indicators point to databases or messaging streams and if those go down there a restart will not resolve the situation. Using this approach it would also mean that existing health indicators don't necessary need to be changed, although we should recommend users annotate them with
I don't think we need to require moving them but it should be recommended in the documentation for 2.1 |
Beta Was this translation helpful? Give feedback.
Q: What should the /health endpoint return ?
I would say
/health
should return a combination of both readiness and livenessQ: Should one of the liveness or readiness endpoint return also health indicators that are not qualified?
/health/readiness
will return just the readiness probes and/health/liveness
just the liveness probesQ: Do we want to migrate micronaut health indicators?
I think current health indicators should all be regarded as
readiness
A user can optionally define a liveness probe that triggers a restart of the container themselves. In general most health indicators point to databases or messaging streams and if those go down there a restart will not resolve the situation.
U…