Adam Cameron
thisOldDave
07/27/2023, 1:26 PMgetPageContext().getDataSourceManager().releaseConnection() for each data base. It tests lucee is running and able to talk to the db, but we do not test other services like SOLR or our API as they have there own health checksPatrick
07/27/2023, 2:22 PMquetwo
07/27/2023, 5:55 PMjamiejackson
08/07/2023, 7:50 PMcurl -ing a page (e.g., the home page) and looking for a bit of text among the html content.
in other words, i get that whole init process out of the way before the orchestrator allows traffic, so during a rolling deployment with multiple lucee replicas, that yields a seamless user experience.
otherwise, every time i did a deployment, i'd have an app init blocking requests to that container.
the downside is that if, say, the DB is dead, for whatever reason, the orchestrator will keep bouncing the container and eventually roll back to the previous image. in other words, that wouldn't be the container's fault but the orchestrator would punish it.
i think K8s has multiple health check stages (one at start and another that happens throughout the life of the container). we still run lucee on Swarm, though, which, IIRC, only has one type of health check. (we've been migrating services one-by-one to k8s, but lucee's going to be the last one to go.)jamiejackson
08/07/2023, 7:52 PM