Nov 1, 2023, 2:20:04 PM11/1/23
to HAPI FHIR
I'm looking for some guidance around setting up health check.
When I deploy code changes, the server reports that it's healthy before it's ready to accept traffic. Because of this, we see a brief period of time (few seconds) where we get a bunch of 503s.
How can I ensure that the health check passes only when the server is ready to accept traffic?
Data source is a Postgres RDS database
Relevant portion from application.yaml
servlet is a custom health indicator to ensure all the beans required to start the server have been initialized. I set a boolean which the indicator checks to true in ServletRegistrationBean after all the setup work is done.
This did not work either.