Closed rsoika closed 2 years ago
@rsoika we on purpose do not specify the behavior in containers that allow multiple deployments as MP is targeting microservices (one app per runtime). We plan to discuss app server environments in detail in a later version of the specification. I would suggest opening this issue directly with the WFLY application server. I believe there are ways to fail the probes if the deployment fails. Also please feel free to mention me in the WFLY issue too.
Thanks for your response. I opened a bug wildfly report: https://issues.redhat.com/projects/WFLY/issues/WFLY-14804
I understand your point and suggested that the Wildfly MP Health impl should return a HTTP response code 204 or 206 if a deployment failed during startup. This would make it easy to integrate with Kubernetes liveness Probe
@rsoika Can we close this issue or do you have any more questions/concerns?
yes of course
I have a general conceptual question about microprofile-health api.
In my application I implemented a details health status which results in a output with HTTP Code 200 as followed:
I am running this on Wildfly. My Kubernetes health check looks like this:
So I am using the default behaviour from Kubernetes here to validate the http response code 200=OK.
But I run into situations where something bad happens and my application did not start correctly and is not deployed at all. This results on the server in a health status like this:
And so again we have http response code 200=OK.
Is there any chance in eclipse microprofile-health to force the Status=DOWN in case a specific deployment is missing?