Closed lindgrenj6 closed 4 years ago
cc @carbonin
@bdunne want to take a look?
@bdunne the goal is to pull the fields into kibana or something - that way we can keep track of the state over time etc. It's not set up yet, but will be soon.
@bdunne the goal is to pull the fields into kibana or something - that way we can keep track of the state over time etc.
If we split the migration issues out of this and just focus on the liveness probe, maybe we should just return HEAD 200? After reading this blog article it sounds like our liveness probe shouldn't even check the connection to the database. What do you think?
@bdunne Yes, I'm ok with removing most (if not all) of that logic in the controller as long as we make the pod impossible to start if the database migrations fail.
spec/dummy/config/routes.rb
get
.@bdunne @carbonin I pulled out the db migration stuff - opened a PR on the catalog side to change the behavior of the container to not start up if the database migrations fail. https://github.com/RedHatInsights/catalog-api/pull/563
This work was initially implemented and reviewed here: https://github.com/RedHatInsights/catalog-api/pull/528
This is basically the extraction of the (albeit tiny) controller that can then be added to any application and then mapped to
/health
as in the dummy app here. The goal is to use this across the microservices to have a liveness probe watch this URL.