-
Notifications
You must be signed in to change notification settings - Fork 59
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
docker "defaultServer" passes health checks, when application is still starting up #567
Comments
Hi @lancechant, Thank you for reaching out. Please provide the below information to help with our investigation:
|
Hi @leochr here are the responses:
|
@lancechant Thank you for the additional details. Could you please provide the server log? We are interested to see the events leading up to the startup of the Liberty server and the application including the various endpoints. You can trim out the rest. Are you defining custom health checks by implementing the interface |
Hi @leochr Attached are the logs from the docker container, tried to leave as much there as possible, and just removed some information, I hope it helps. Yes we are, and it's a dependency from another lib we have that is brought in with Maven, the health check is annotated with the |
Hey @leochr just checking if you've made any headway with this? |
@lancechant Sorry for the delayed response. I missed the notification for your inquiry. I investigated the logs but I couldn't find anything that could explain the. Please share more details about the health check. Thank you.
|
Hi @leochr thanks for getting back, no worries I'm sure you have many things to work on.
|
Hey @leochr a small observation I noticed, and not to sure how the OL docker image works.. but I say it showed the
|
Hi
We have a server on an instance that has limited resources so it takes a bit to start up, and we have noticed we get healthchecks that "pass" and say the server is up, when in fact it's not our server, and it comes up later.
The docker image passes health checks here:
[AUDIT ] CWWKF0012I: The server installed the following features: [appSecurity-5.0, beanValidation-3.0, cdi-4.0, connectors-2.1, distributedMap-1.0, enterpriseBeansLite-4.0, enterpriseBeansPersistentTimer-4.0, expressionLanguage-5.0, jdbc-4.3, jndi-1.0, json-1.0, jsonb-3.0, jsonp-2.1, jwt-1.0, localConnector-1.0, mdb-4.0, messaging-3.1, microProfile-6.1, monitor-1.0, mpConfig-3.1, mpFaultTolerance-4.0, mpHealth-4.0, mpJwt-2.1, mpMetrics-5.1, mpOpenAPI-3.1, mpRestClient-3.0, mpTelemetry-1.1, restfulWS-3.1, restfulWSClient-3.1, servlet-6.0, ssl-1.0, transportSecurity-1.0]. [AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 43.494 seconds
But we have a log line a few lines below that showing the application is not started yet
[AUDIT ] CWWKZ0022W: Application test-app has not started in 30.000 seconds.
At this point the docker image passes health checks while the server is still starting up, we also have custom health checks in the server, but those are not triggered at this point, as the only response we get is status UP, then it will go to down status and back to showing us our custom health check responses.
Is this intended behaviour? and what can we do to get around this?
The text was updated successfully, but these errors were encountered: