I need to find out the best way to know if the docker container is dead or the machine running that particulat docker container is dead. There may exist some sort of hook or an event generated by nomad which I can intercept. I am sure nomad api server knows about it. I just want to catch that event on the second server which is still alive.
Hi, will health checks not work for you in this scenario?
I’m pretty new to nomad but I definitely plan on adding health checks to each job which will pull services out of consul if they are unhealthy. If you are using consul potentially you can register the service to consul using service discovery and you can potentially use a watch in the event that it becomes unhealthy.
Thanks for your response!
I am not planning to use consul until that becomes last resort.