-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default live and ready health check response for deployed applications #181
Comments
Hi @sdaschner, thank you for the idea. There is an option for implementations to provide custom default health procedures [1]: |
We did something related in WildFly to add a default readiness probe (which always returns This allows to configure the server to returns We did not do the same thing for liveness probe as it does not make sense (a deployment is "live" by default and must provide its own liveness procedures to determine when it is not). |
To sum up: This would influence only multi deployments runtimes/app servers and wouldn't be necessary for the single deployment applications (maybe even additional and unwanted). This would mean that we need to add an optional part of the spec that would be implemented only in the app server environments. Since we are close to 3.0 release I would like to rediscuss this with the team for the next minor release since this would not be a breaking change. |
It would be a simplification for less complex applications to declare a way where a successfully deployed applications shows up in the health resources, even without requiring some code in the project.
I.e. as soon as mp-health is supported/activated/installed on the implementation side, the /health resource could deliver a default response for the deployed application (given, no deployment error occurred).
Consider something similar to the following:
In this case, would not need the mp-health dependency, only a configured runtime (e.g.
mpHealth-x.x
feature in Liberty), and we save quite some boilerplate code for a lot of use cases.Otherwise, IMO the benefit of defining a default health check with mp-health is not much bigger than defining a simple OK-resource in JAX-RS...
The text was updated successfully, but these errors were encountered: